示例#1
0
 private void btnPenKey_Click(object sender, EventArgs e)
 {
     if (DeployConfig.isNewUI)
     {
         if (sender == this.btnAbove)
         {
             FormEKey_New formEkeyNew = new FormEKey_New(sender, HNStruct.globalInfo.pbtns[2]);
             formEkeyNew.callback += new EKeyCallback(this.form_TransfEvent);
             int num = (int)formEkeyNew.ShowDialog();
         }
         else
         {
             if (sender != this.btnBelow)
             {
                 return;
             }
             FormEKey_New formEkeyNew = new FormEKey_New(sender, HNStruct.globalInfo.pbtns[1]);
             formEkeyNew.callback += new EKeyCallback(this.form_TransfEvent);
             int num = (int)formEkeyNew.ShowDialog();
         }
     }
     else if (sender == this.btnAbove)
     {
         FormEKey formEkey = new FormEKey(sender, HNStruct.globalInfo.pbtns[2]);
         formEkey.callback += new EKeyCallback(this.form_TransfEvent);
         int num = (int)formEkey.ShowDialog();
     }
     else if (sender == this.btnBelow)
     {
         FormEKey formEkey = new FormEKey(sender, HNStruct.globalInfo.pbtns[1]);
         formEkey.callback += new EKeyCallback(this.form_TransfEvent);
         int num = (int)formEkey.ShowDialog();
     }
 }
示例#2
0
 private void clickBtn_Click(object sender, EventArgs e)
 {
     if (DeployConfig.getOemType() == OEMType.HUION && DeployConfig.isNewUI)
     {
         FormEKey_New formEkeyNew =
             new FormEKey_New((object)this.mCheckedKeyLayout, this.mCheckedKeyLayout.Key);
         formEkeyNew.callback += new EKeyCallback(this.form_TransfEvent);
         int num = (int)formEkeyNew.ShowDialog();
     }
     else
     {
         FormEKey formEkey = new FormEKey((object)this.mCheckedKeyLayout, this.mCheckedKeyLayout.Key);
         formEkey.callback += new EKeyCallback(this.form_TransfEvent);
         int num = (int)formEkey.ShowDialog();
     }
 }
示例#3
0
        private void comboBoxMekey_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.mTouchIndex = this.comboBoxMekey.SelectedIndex;
            if (this.keyLayouts == null)
            {
                return;
            }
            HuionKeyLayout keyLayout = this.keyLayouts[this.keyLayouts.Length - 1];

            if (DeployConfig.getOemType() == OEMType.HUION && DeployConfig.isNewUI)
            {
                FormEKey_New formEkeyNew = new FormEKey_New((object)keyLayout, keyLayout.MutliKeys[this.getMeIndex()]);
                formEkeyNew.callback += new EKeyCallback(this.form_TransfEvent);
                int num = (int)formEkeyNew.ShowDialog();
            }
            else
            {
                FormEKey formEkey = new FormEKey((object)keyLayout, keyLayout.MutliKeys[this.getMeIndex()]);
                formEkey.callback += new EKeyCallback(this.form_TransfEvent);
                int num = (int)formEkey.ShowDialog();
            }
        }