示例#1
0
 void ShowUploadedDialog()
 {
     if (uploadedDialog == null)
     {
         uploadedDialog = new InformationDialog(Screen)
         {
             Message = new TextBlock(Screen)
             {
                 Text = Strings.DemoBlocksUploadedInformation,
                 HorizontalAlignment = HorizontalAlignment.Left,
                 ForegroundColor     = Color.White,
                 BackgroundColor     = Color.Black
             }
         };
     }
     uploadedDialog.Show();
 }
示例#2
0
        void OnConfirmInstallDialogClosed(object sender, EventArgs e)
        {
            if (confirmInstallDialog.Result == MessageBoxResult.OK)
            {
                viewModel.InstallDemoContents();

                if (installedDialog == null)
                {
                    installedDialog = new InformationDialog(Screen)
                    {
                        Message = new TextBlock(Screen)
                        {
                            Text = Strings.DemoBlocksInstalledInformation,
                            HorizontalAlignment = HorizontalAlignment.Left,
                            ForegroundColor     = Color.White,
                            BackgroundColor     = Color.Black
                        }
                    };
                }
                installedDialog.Show();
            }
        }
示例#3
0
 void ShowUploadedDialog()
 {
     if (uploadedDialog == null)
     {
         uploadedDialog = new InformationDialog(Screen)
         {
             Message = new TextBlock(Screen)
             {
                 Text = Strings.DemoBlocksUploadedInformation,
                 HorizontalAlignment = HorizontalAlignment.Left,
                 ForegroundColor = Color.White,
                 BackgroundColor = Color.Black
             }
         };
     }
     uploadedDialog.Show();
 }
示例#4
0
        void OnConfirmInstallDialogClosed(object sender, EventArgs e)
        {
            if (confirmInstallDialog.Result == MessageBoxResult.OK)
            {
                viewModel.InstallDemoContents();

                if (installedDialog == null)
                {
                    installedDialog = new InformationDialog(Screen)
                    {
                        Message = new TextBlock(Screen)
                        {
                            Text = Strings.DemoBlocksInstalledInformation,
                            HorizontalAlignment = HorizontalAlignment.Left,
                            ForegroundColor = Color.White,
                            BackgroundColor = Color.Black
                        }
                    };
                }
                installedDialog.Show();
            }
        }