示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            player = new SoundPlayer(Properties.Resources.click);
            int right = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Width;

            //Properties.Settings.Default.Reset(); //Uncomment to reset the counter!

            //The runTimes counter is temporally disbled, now the tutorial always shows
            //if (Properties.Settings.Default.runTimes > 0)
            //{
            this.Hide();
            firstTimeRunDialog = new FirstTimeRun();
            firstTimeRunDialog.ShowDialog();
            this.Show();
            //Properties.Settings.Default.runTimes--;
            //Properties.Settings.Default.Save();
            //}
        }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            player = new SoundPlayer(Properties.Resources.click);
            int right = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size.Width;

            //Properties.Settings.Default.Reset(); //Uncomment to reset the counter!

            //The runTimes counter is temporally disbled, now the tutorial always shows
            //if (Properties.Settings.Default.runTimes > 0)
            //{
                this.Hide();
                firstTimeRunDialog = new FirstTimeRun();
                firstTimeRunDialog.ShowDialog();
                this.Show();
                //Properties.Settings.Default.runTimes--;
                //Properties.Settings.Default.Save();
            //}
        }