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