Awesomizer.Controls.AlertView.AlertView C# (CSharp) Method

AlertView() public method

public AlertView ( string title, string message ) : System
title string
message string
return System
        public AlertView(string title, string message)
        {
            ShadowOpacity = 0.15f;
            ContainerWidth = 300;
            ButtonHeight = 50;
            CornerRadius = 6;

            titleLabel = new UILabel();
            titleLabel.Text = title;
            titleLabel.Font = TitleFont;

            messageLabel = new UILabel();
            messageLabel.Text = message;
            messageLabel.Font = MessageFont;

            Frame = UIScreen.MainScreen.Bounds;
            BackgroundColor = UIColor.FromWhiteAlpha(0, 0.2f);

            containerView = new UIView();
            containerView.Layer.CornerRadius = CornerRadius;
            containerView.Layer.MasksToBounds = true;

            shadowView.Layer.ShadowColor = UIColor.Black.CGColor;
            shadowView.Layer.ShadowOffset = CoreGraphics.CGSize.Empty;
            shadowView.Layer.ShadowOpacity = ShadowOpacity;
        }