public static Result_ Show(string title, string message, string leftButtonText = "Got it!", string rightButtonText = null) { CloseDialog(); var p = new DialogBox(); _lastOpenedDialog = p; p.SetContent(title, message, leftButtonText, rightButtonText); p.DialogHost.IsOpen = true; p.ShowDialog(); Result = p._result; return(p._result); }
private void Button_Right_OnClick(object sender, RoutedEventArgs e) { _result = Result_.RightButtonClicked; Close(); }