コード例 #1
0
ファイル: WordJumble.cs プロジェクト: phucthotran/word-jumble
        private void lblBeginner_Click(object sender, EventArgs e)
        {
            this.Hide();

            // SET UP
            WordJumble.Properties.Settings.Default.Mode        = "Beginner";
            WordJumble.Properties.Settings.Default.ModeLastest = false;
            fPlay = new Playing();
            fPlay.Show();
        }
コード例 #2
0
ファイル: WordJumble.cs プロジェクト: phucthotran/word-jumble
 private void mnuLastest_Click(object sender, EventArgs e)
 {
     if (WordJumble.Properties.Settings.Default.ModeLastest)
     {
         this.Hide();
         // SET UP
         WordJumble.Properties.Settings.Default.Mode = WordJumble.Properties.Settings.Default.Mode4Resume;
         fPlay = new Playing();
         fPlay.Show();
     }
     else
     {
         MessageBox.Show("You aren't save before. So, You cann't use this mode", "WordJumble", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #3
0
ファイル: WordJumble.cs プロジェクト: phucthotran/word-jumble
        private void mnuLoadGame_Click(object sender, EventArgs e)
        {
            OpenFileDialog load = new OpenFileDialog();

            load.Filter = "WordJumble Saved|*.wjsav";
            load.Title  = "WordJumble Loading Game";

            if (load.ShowDialog() == DialogResult.OK)
            {
                LoadGame.Process(load.FileName);
                this.Hide();

                fPlay = new Playing();
                fPlay.Show();
            }
        }