示例#1
0
        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);
        }
示例#2
0
 private void Button_Right_OnClick(object sender, RoutedEventArgs e)
 {
     _result = Result_.RightButtonClicked;
     Close();
 }