示例#1
0
        private void BtStopClick(object sender, EventArgs e)
        {
            _log.writeLogLine("Informer stopped", "log");
            Message("Informer Stopped!", globalVars, response);

            globalVars.firsrun = true;

            GPUStatusTimer.Enabled     = false;
            GetTempretureTimer.Enabled = false;
            PingTimer.Enabled          = false;
            MqttConnectTimer.Enabled   = false;
            globalVars.mqttIsConnect   = false;

            AutoStartTimer.Enabled = false;
            AutoStartTimer.Stop();

            NextAutoStart.Stop();
            btStop.Visible        = false;
            btStart.Enabled       = true;
            SendDataTimer.Enabled = false;


            InformationLabel.Text      = MyStrings.labelInformationStop;
            InformationLabel.ForeColor = Color.Gray;

            tbToken.ReadOnly = false;
        }
示例#2
0
 private void btnLaunch_Click(object sender, EventArgs e)
 {
     if (AutoStartTimer.Enabled)
     {
         AutoStartTimer.Stop();
         btnLaunch.Text = resman.GetString("btnLaunch.Text", ci);
     }
     LaunchGame();
 }
示例#3
0
        private void btnSettings_Click(object sender, EventArgs e)
        {
            if (AutoStartTimer.Enabled)
            {
                AutoStartTimer.Stop();
                btnLaunch.Text = resman.GetString("btnLaunch.Text", ci);
            }
            var SettingsWindow = new Settings();

            SettingsWindow.ShowDialog(this);
            Fcheck();
            ChangedBanner();
        }
示例#4
0
 //Timeout Launcher
 private void AutoStartTimer_Tick(object sender, EventArgs e)
 {
     AutoStartTimer.Stop();
     LaunchGame();
 }