// ----------------------------------------------------------------- // Brings up a basic message box, with the chosen button // ----------------------------------------------------------------- public static DialogResult Show(IWin32Window owner, string title, string message, Buttons buttons) { InfoBox infoBoxDialog = new InfoBox(title, message, buttons); return(infoBoxDialog.ShowDialog(owner)); }
// ----------------------------------------------------------------- // Brings up a basic message box with an OK button // ----------------------------------------------------------------- public static DialogResult Show(IWin32Window owner, string title, string promptText) { InfoBox infoBoxDialog = new InfoBox(title, promptText, Buttons.Ok); return(infoBoxDialog.ShowDialog(owner)); }