Esempio n. 1
0
        private void changeFrametoNewGame(object sender, RoutedEventArgs e)
        {
            this.Hide();
            //Window1 wd1 = new Window1(this);
            BrowseWindow bw = new BrowseWindow(this);

            bw.ShowDialog();
        }
Esempio n. 2
0
        private void CannotLoad(string sMessageBoxText, string sCaption)
        {
            MessageBoxButton btnMessageBox = MessageBoxButton.OKCancel;
            MessageBoxImage  icnMessageBox = MessageBoxImage.Error;

            MessageBoxResult rsltMessageBox = MessageBox.Show(sMessageBoxText, sCaption, btnMessageBox, icnMessageBox);

            switch (rsltMessageBox)
            {
            case MessageBoxResult.Cancel:
            {
                Environment.Exit(1);
            }
            break;

            case MessageBoxResult.OK:
            {
                this.Hide();
                BrowseWindow browseWindow = new BrowseWindow(this);
                browseWindow.ShowDialog();
            }
            break;
            }
        }