Пример #1
0
        protected override void CancelBut_Click(object sender, EventArgs e)
        {
            SettingConfig.ResetSettingOption();
            Control parent = this.Parent;

            parent.Hide();
        }
Пример #2
0
        protected override void SaveBut_Click(object sender, EventArgs e)
        {
            if (SettingConfig.PlayerOption)
            {
                CaroService.Player.PlayerName1 = TempConfig.NamePlayer1;
                CaroService.Player.PlayerName2 = TempConfig.NamePlayer2;
            }
            else if (SettingConfig.TimeOption)
            {
                SettingConfig.Interval = TempConfig.Interval;
                SettingConfig.TimeTurn = TempConfig.TimeTurn;
                SettingConfig.IsTime   = TempConfig.IsTime;
                CaroService.Timer.StartTimer(true);
            }
            SettingConfig.ResetSettingOption();
            Control parent = this.Parent;

            parent.Hide();
        }