MetroIde.Dialogs.ControlDialogs.MessageBoxInput.MessageBoxInput C# (CSharp) Method

MessageBoxInput() public method

public MessageBoxInput ( string title, string message, string placeholder, string regexMatch, string defaultText ) : System.Text.RegularExpressions
title string
message string
placeholder string
regexMatch string
defaultText string
return System.Text.RegularExpressions
        public MessageBoxInput(string title, string message, string placeholder, string regexMatch, string defaultText)
        {
            InitializeComponent();
            lblTitle.Text = title;
            lblSubInfo.Text = message;
            lblPlaceholder.Text = placeholder;
            txtInput.Text = defaultText;
            _regexMatch = regexMatch;

            // Note to Alex: this is going to fuck with how you implemented the placeholder text,
            // but I think the textbox should be focused by default
            // Maybe you can make the placeholder text always show if length == 0?
            txtInput.Focus();
            txtInput.Select(txtInput.Text.Length, 0);

            //txtInput_LostFocus(txtInput, null);
        }