public MsgComboBox(string text, string caption, MaterialMessageComboBox.MessageBoxButtons buttons) { 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; Divider_Menu.AutoSize = false; Divider_Menu.Location = new Point(-12, 188); Divider_Menu.Size = new Size(568, 10); Divider_Menu.Enabled = false; switch (buttons) { case MaterialMessageComboBox.MessageBoxButtons.OKCancel: btn_OK.Visible = true; btn_OK.Enabled = true; btn_Cancel.Visible = true; btn_Cancel.Enabled = true; break; default: break; } MaterialMessageComboBox._Result = MaterialMessageComboBox.MessageBoxResult.None; }
//Edit public MsgComboBox(string text, string caption, MaterialMessageComboBox.MessageBoxButtons buttons, long AttitudeID, long SurveyID, long QuestionID) : this(text, caption, buttons) { this.AttitudeID = AttitudeID; this.SurveyID = SurveyID; this.QuestionID = QuestionID; EditMode = true; }
//Add public MsgComboBox(string text, string caption, MaterialMessageComboBox.MessageBoxButtons buttons, long AttitudeID) : this(text, caption, buttons) { this.AttitudeID = AttitudeID; AddMode = true; }