示例#1
0
 private void comboBoxMouseOut_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBoxOutMouse.SelectedIndex == 0)
     {
         txtKeyOut.Text = string.Empty;
         txtKeyOut.Tag  = null;
     }
     else
     {
         var zOutputConfig = new OutputConfig(
             (int)OutputConfig.OutputFlag.MouseOut,
             (byte)(OutputConfig.MouseButton)comboBoxOutMouse.SelectedItem);
         txtKeyOut.Text = zOutputConfig.GetDescription();
         txtKeyOut.Tag  = zOutputConfig;
     }
 }
示例#2
0
 private void checkOutputCancel_CheckedChanged(object sender, EventArgs e)
 {
     comboBoxOutMouse.Enabled                                       =
         checkOutputAlt.Enabled                                     =
             checkOutputShift.Enabled                               =
                 checkOutputControl.Enabled                         =
                     checkOutputUp.Enabled                          =
                         checkOutputDown.Enabled                    =
                             checkOutputToggle.Enabled              =
                                 checkOutputDelay.Enabled           =
                                     checkOutputRepeat.Enabled      =
                                         checkOutputNothing.Enabled =
                                             !checkOutputCancel.Checked;
     if (checkOutputCancel.Checked)
     {
         var zOutputConfig = new OutputConfig((int)OutputConfig.OutputFlag.CancelActiveOutputs, 0);
         txtKeyOut.Text = zOutputConfig.GetDescription();
         txtKeyOut.Tag  = zOutputConfig;
     }
 }
示例#3
0
        private void numericUpDownDelay_ValueChanged(object sender, EventArgs e)
        {
            var nFlag = 0;

            if (checkOutputDelay.Checked)
            {
                nFlag = (int)OutputConfig.OutputFlag.Delay;
            }
            // TODO: support other types that use the param this way...
            if (nFlag == 0)
            {
                return;
            }

            var zOutputConfig = new OutputConfig(
                nFlag,
                0,
                (int)numericUpDownOutputParameter.Value);

            txtKeyOut.Text = zOutputConfig.GetDescription();
            txtKeyOut.Tag  = zOutputConfig;
        }