public InputBoxWindow(string initialInput = "", string title = "Input box", string label = "Input", string okCaption = "Ok", string cancelCaption = "Cancel", ValidateInputCallback validateInputCallback = null)
        {
            m_validateInputCallback = validateInputCallback;
            InitializeComponent();

            Title = title;
            this.label.Content = label;
            okButton.Content = okCaption;
            cancelButton.Content = cancelCaption;
            inputTextBox.Text = initialInput;
        }
Пример #2
0
        public InputBoxWindow(string initialInput = "", string title = "Input box", string label = "Input", string okCaption = "Ok", string cancelCaption = "Cancel", ValidateInputCallback validateInputCallback = null)
        {
            m_validateInputCallback = validateInputCallback;
            InitializeComponent();

            Title = title;
            this.label.Content   = label;
            okButton.Content     = okCaption;
            cancelButton.Content = cancelCaption;
            inputTextBox.Text    = initialInput;
        }