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