public MsgInput(string text, string caption, MaterialMessageInput.MessageBoxButtonsInput buttons, string defaultValue = "", bool isPassword = false) { InitializeComponent(); __materialSkinManager = MaterialSkinManager.Instance; __materialSkinManager.AddFormToManage(this); __materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT; __materialSkinManager.ColorScheme = new ColorScheme(Primary.Blue800, Primary.Blue900, Primary.Blue500, Accent.LightBlue200, TextShade.WHITE); base.Text = caption; lbl_Text.Text = text; txt_Answer.Text = defaultValue; DefaultInputValue = defaultValue; switch (buttons) { case MaterialMessageInput.MessageBoxButtonsInput.OKCancel: // For this we need only one type. btn_OK.Visible = true; btn_OK.Enabled = true; btn_Cancel.Visible = true; btn_Cancel.Enabled = true; break; default: break; } if (isPassword) { txt_Answer.UseSystemPasswordChar = true; } Divider_Menu.AutoSize = false; }
public MsgInput(string text, string caption, MaterialMessageInput.MessageBoxButtonsInput buttons, string defaultValue, bool isPassword = false, bool addSurvey = false, bool addQuestion = false, bool addAttitude = false, bool editQuestion = false) : this(text, caption, buttons, defaultValue, isPassword) { AddSurveyMode = addSurvey; AddQuestionMode = addQuestion; AddAttitudeMode = addAttitude; EditQuestionMode = editQuestion; }