/// <summary> /// 弹出Pup窗口提醒 /// </summary> /// <param name="title">窗口标题</param> /// <param name="subject">提醒主题</param> /// <param name="msg">信息</param> public static void ShowPupUp(string title, string subject, string msg) { if (String.IsNullOrEmpty(title)) { title = "提醒"; } //System.Windows.Application.Current.Dispatcher.Invoke(new Action(() => //{ WpfApplication1.Control.PopUP pop = new WpfApplication1.Control.PopUP(); pop.Subject = subject; pop.Msg = msg; pop.PopTitle = title; pop.Show(); //})); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PopWin = ((WpfApplication1.Control.PopUP)(target)); #line 4 "..\..\..\Control\PopUP.xaml" this.PopWin.Loaded += new System.Windows.RoutedEventHandler(this.PopWin_Loaded); #line default #line hidden return; case 2: this.tt = ((System.Windows.Media.TranslateTransform)(target)); return; case 3: this.lblTitle = ((System.Windows.Controls.Label)(target)); return; case 4: this.btnClose = ((System.Windows.Controls.Button)(target)); #line 63 "..\..\..\Control\PopUP.xaml" this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click); #line default #line hidden return; case 5: this.txtInfo = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.txtSubject = ((System.Windows.Documents.Run)(target)); return; case 7: this.txtContent = ((System.Windows.Documents.Run)(target)); return; } this._contentLoaded = true; }