コード例 #1
0
 /// <summary>
 /// 创建新的子窗体
 /// </summary>
 /// <param name="text">子窗体的提示内容</param>
 /// <param name="OnClosed">子窗体的Closed事件</param>
 public static void Show(string text, EventHandler<WindowClosedEventArgs> OnClosed)
 {
     ConfirmRadWindow crw = new ConfirmRadWindow();
     crw.UserConfrimText.Text = text;
     crw.Closed += OnClosed;
     crw.ShowDialog();
 }
コード例 #2
0
 /// <summary>
 /// 创建新的子窗体
 /// </summary>
 /// <param name="header">子窗体的标题</param>
 /// <param name="text">子窗体的提示内容</param>
 /// <param name="source">子窗体要显示的图片路径</param>
 /// <param name="OnClose">子窗体的Closed事件</param>
 public static void Show(string header, string text, Uri source, EventHandler<WindowClosedEventArgs> OnClosed)
 {
     ConfirmRadWindow crw = new ConfirmRadWindow();
     crw.Header = header;
     crw.Image.Source = new BitmapImage(source);
     crw.UserConfrimText.Text = text;
     crw.Closed += OnClosed;
     crw.ShowDialog();
 }