예제 #1
0
 public static void ShowJryVideoMessage(this Window self, string caption, string message)
 {
     var dlg = new MessageWindow()
     {
         WindowStartupLocation = WindowStartupLocation.CenterOwner,
         Owner = self
     };
     dlg.TitleTextBlock.Text = caption;
     dlg.ContentTextBlock.Text = message;
     dlg.ShowDialog();
 }
예제 #2
0
        public static void ShowJryVideoMessage(this Window self, string caption, string message)
        {
            var dlg = new MessageWindow()
            {
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
                Owner = self
            };

            dlg.TitleTextBlock.Text   = caption;
            dlg.ContentTextBlock.Text = message;
            dlg.ShowDialog();
        }
예제 #3
0
        public static void ShowJryVideoMessage(this Window self, string caption, string message)
        {
            if (new WindowStatusCached(self).IsClosed)
            {
                self = null;
            }
            var dlg = new MessageWindow()
            {
                WindowStartupLocation = WindowStartupLocation.CenterOwner,
                Owner = self
            };

            dlg.TitleTextBlock.Text   = caption;
            dlg.ContentTextBlock.Text = message;
            dlg.ShowDialog();
        }