public static void ShowDialog(string message, string title, EventHandler callback, bool cancelButton = false)
		{
			ConfirmationWindow window = new ConfirmationWindow() { Message = message, Title = title };
            if (cancelButton) window.CancelButton.Visibility = Visibility.Visible;
			if (callback != null) window.Closed += callback;
			window.Show();
		}
        public static void ShowDialog(string message, EventHandler callback)
        {
            ConfirmationWindow window = new ConfirmationWindow()
            {
                Message = message
            };

            if (callback != null)
            {
                window.Closed += callback;
            }
            window.Show();
        }
Beispiel #3
0
        public static void ShowDialog(string message, string title, EventHandler callback, bool cancelButton = false)
        {
            ConfirmationWindow window = new ConfirmationWindow()
            {
                Message = message, Title = title
            };

            if (cancelButton)
            {
                window.CancelButton.Visibility = Visibility.Visible;
            }
            if (callback != null)
            {
                window.Closed += callback;
            }
            window.Show();
        }