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();
 }
        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();
        }
Esempio n. 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();
        }