コード例 #1
0
 public ErrorDialog(INeedsErrorHandlingMessage message)
 {
     this.InitializeComponent();
     this.Message = message;
     this.ErrorText = message.Exception.Message;
     this.TranslateUiContent();
 }
コード例 #2
0
 public ErrorView(FrameworkElement parent, INeedsErrorHandlingMessage message)
     : this()
 {
     this.Message = message;
     this.MyParent = parent;
     this.LogError();
     this.ShowMessage();
     base.Focus();
 }
コード例 #3
0
 private void ShowErrorView(INeedsErrorHandlingMessage nehMessage)
 {
     ErrorView view = new ErrorView(this, nehMessage);
     Grid.SetRowSpan(view, 4);
     this.LayoutRoot.Children.Add(view);
 }