예제 #1
0
        // -----------------------------------------------------------------
        // 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));
        }
예제 #2
0
        // -----------------------------------------------------------------
        // 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));
        }