/// <summary> /// Show dialog with config parameters /// </summary> public static ShowDialogResult ShowDialog(string Message, string Title = "Information", string DefaultInput = "", bool Input = false, ButtonType Btn1 = ButtonType.OK, ButtonType Btn2 = ButtonType.None, ButtonType Btn3 = ButtonType.None, DialogIcon Icon = DialogIcon.None, string CB1_Text = "Custom1", string CB2_Text = "Custom2", string CB3_Text = "Custom3") { // Set custom buttons DialogInputForm.SetButton(1, CB1_Text); DialogInputForm.SetButton(2, CB2_Text); DialogInputForm.SetButton(3, CB3_Text); // Show dialog return(DialogInputForm.ShowDialog(Message, Title, DefaultInput, Input, Btn1, Btn2, Btn3, Icon)); }
/// <summary> /// Show dialog with config class /// </summary> public static ShowDialogResult ShowDialog(DialogConfig Config) { // Set custom buttons DialogInputForm.SetButton(1, Config.CustomButton1Text); DialogInputForm.SetButton(2, Config.CustomButton2Text); DialogInputForm.SetButton(3, Config.CustomButton3Text); // Show dialog return(DialogInputForm.ShowDialog(Config.Message, Config.Title, Config.DefaultInput, Config.Input, Config.Button1, Config.Button2, Config.Button3, Config.Icon)); }