Esempio n. 1
0
 public static bool ShowDialog_TwoButton(Window owner, string title = "Message box", string message = "Message", string positiveCaption = "Ok", string negativeCaption = "Cancel")
 {
     TwoButtonsWindow dialog = new TwoButtonsWindow(title, message, positiveCaption, negativeCaption);
     dialog.Owner = owner;
     dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
     return dialog.ShowDialog().Value;
 }
Esempio n. 2
0
        public static bool ShowDialog_TwoButton(Window owner, string title = "Message box", string message = "Message", string positiveCaption = "Ok", string negativeCaption = "Cancel")
        {
            TwoButtonsWindow dialog = new TwoButtonsWindow(title, message, positiveCaption, negativeCaption);

            dialog.Owner = owner;
            dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            return(dialog.ShowDialog().Value);
        }