Exemple #1
0
 private void radModeBypass_CheckedChanged(object sender, System.EventArgs e)
 {
     if(radModeBypass.Checked)
     {
         if(FWCATU.AutoStatus == 1)
             FWCATU.AutoTuning(false);
         if(FWCATU.Active)
             FWCATU.Activate(false);
         FWC.ATUSendCmd(9, 0, 0);
         current_tune_mode = FWCATUMode.Bypass;
         console.FWCATUBypass();
     }
     grpTune.Enabled = !radModeBypass.Checked;
 }
Exemple #2
0
 private void radModeSemiAuto_CheckedChanged(object sender, System.EventArgs e)
 {
     if(radModeSemiAuto.Checked)
     {
         if(!FWCATU.Active)
             FWCATU.Activate(true);
         if(FWCATU.AutoStatus == 1)
             FWCATU.AutoTuning(false);
         current_tune_mode = FWCATUMode.SemiAutomatic;
     }
 }
Exemple #3
0
        private void rdBypass_CheckedChanged(object sender, System.EventArgs e)
        {
            if (rdBypass.Checked)
            {
                rdBypass.BackColor = console.ButtonSelectedColor;
                rdTune.Checked = false;
                current_tune_mode = FWCATUMode.Bypass;
                if (console.MOX)
                {
                    int power = console.PWR;
                    console.PWR = 0;
                    Thread.Sleep(50);
                    FWC.SetATUEnable(false);
                    console.PWR = power;
                }
                else FWC.SetATUEnable(false);

                console.FWCATUBypass();
            }
            else
            {
                rdBypass.BackColor = SystemColors.Control;
            }
            abort = true;

        }