Пример #1
0
        public DialogBoxViewModel(string message, string boxHint, bool isPassword,
                                  Enums.MessageBoxDilogButtons buttons = Enums.MessageBoxDilogButtons.OkCancel)
        {
            ShowPasswordBox = isPassword;
            ShowTextBox     = !ShowPasswordBox;
            Message         = message;
            LogoVisibility  = true;
            if (!isPassword)
            {
                ShowTextBox       = true;
                DialogTextBoxText = boxHint;
            }
            else
            {
                ShowPasswordBox = true;
            }

            ShowButtons(buttons);
        }
Пример #2
0
 public DialogBoxViewModel(string message, IEnumerable <string> values, string val = "", Enums.MessageBoxDilogButtons buttons = Enums.MessageBoxDilogButtons.OkCancel)
 {
     ShowPasswordBox = false;
     ShowTextBox     = false;
     Message         = message;
     LogoVisibility  = true;
     Values          = values;
     Value           = val;
     ShowCombo       = true;
     ShowButtons(buttons);
 }