Exemple #1
0
        /// <summary>
        /// 初始化控件数组
        /// </summary>
        private void initControlArray()
        {
            chkHotkeys = new LCheckBox[hotKeyCount][];
            cbbHotkeys = new LComboBox[hotKeyCount];
            hotKeys    = new KeyModel[] { Util.HOTKEY_WHOLE, Util.HOTKEY_ACTIVE, Util.HOTKEY_FREE, Util.HOTKEY_LAST, Util.HOTKEY_CLIP, Util.HOTKEY_TXTPIN, Util.HOTKEY_EXIT };

            chkHotkeys[0]    = new LCheckBox[4];
            chkHotkeys[0][0] = chkCtrl1;
            chkHotkeys[0][1] = chkShift1;
            chkHotkeys[0][2] = chkAlt1;
            chkHotkeys[0][3] = chkWin1;
            cbbHotkeys[0]    = cbbKeys1;

            chkHotkeys[1]    = new LCheckBox[4];
            chkHotkeys[1][0] = chkCtrl2;
            chkHotkeys[1][1] = chkShift2;
            chkHotkeys[1][2] = chkAlt2;
            chkHotkeys[1][3] = chkWin2;
            cbbHotkeys[1]    = cbbKeys2;

            chkHotkeys[2]    = new LCheckBox[4];
            chkHotkeys[2][0] = chkCtrl3;
            chkHotkeys[2][1] = chkShift3;
            chkHotkeys[2][2] = chkAlt3;
            chkHotkeys[2][3] = chkWin3;
            cbbHotkeys[2]    = cbbKeys3;

            chkHotkeys[3]    = new LCheckBox[4];
            chkHotkeys[3][0] = chkCtrl4;
            chkHotkeys[3][1] = chkShift4;
            chkHotkeys[3][2] = chkAlt4;
            chkHotkeys[3][3] = chkWin4;
            cbbHotkeys[3]    = cbbKeys4;

            chkHotkeys[4]    = new LCheckBox[4];
            chkHotkeys[4][0] = chkCtrl5;
            chkHotkeys[4][1] = chkShift5;
            chkHotkeys[4][2] = chkAlt5;
            chkHotkeys[4][3] = chkWin5;
            cbbHotkeys[4]    = cbbKeys5;

            chkHotkeys[5]    = new LCheckBox[4];
            chkHotkeys[5][0] = chkCtrl6;
            chkHotkeys[5][1] = chkShift6;
            chkHotkeys[5][2] = chkAlt6;
            chkHotkeys[5][3] = chkWin6;
            cbbHotkeys[5]    = cbbKeys6;

            chkHotkeys[6]    = new LCheckBox[4];
            chkHotkeys[6][0] = chkCtrl7;
            chkHotkeys[6][1] = chkShift7;
            chkHotkeys[6][2] = chkAlt7;
            chkHotkeys[6][3] = chkWin7;
            cbbHotkeys[6]    = cbbKeys7;
        }
Exemple #2
0
        /// <summary>
        /// 初始化控件数组
        /// </summary>
        private void initControlArray()
        {
            chkHotkeys = new LCheckBox[6][];
            cbbHotkeys = new LComboBox[6];

            chkHotkeys[0]    = new LCheckBox[4];
            chkHotkeys[0][0] = chkCtrl1;
            chkHotkeys[0][1] = chkShift1;
            chkHotkeys[0][2] = chkAlt1;
            chkHotkeys[0][3] = chkWin1;
            cbbHotkeys[0]    = cbbKeys1;

            chkHotkeys[1]    = new LCheckBox[4];
            chkHotkeys[1][0] = chkCtrl2;
            chkHotkeys[1][1] = chkShift2;
            chkHotkeys[1][2] = chkAlt2;
            chkHotkeys[1][3] = chkWin2;
            cbbHotkeys[1]    = cbbKeys2;

            chkHotkeys[2]    = new LCheckBox[4];
            chkHotkeys[2][0] = chkCtrl3;
            chkHotkeys[2][1] = chkShift3;
            chkHotkeys[2][2] = chkAlt3;
            chkHotkeys[2][3] = chkWin3;
            cbbHotkeys[2]    = cbbKeys3;

            chkHotkeys[3]    = new LCheckBox[4];
            chkHotkeys[3][0] = chkCtrl4;
            chkHotkeys[3][1] = chkShift4;
            chkHotkeys[3][2] = chkAlt4;
            chkHotkeys[3][3] = chkWin4;
            cbbHotkeys[3]    = cbbKeys4;

            chkHotkeys[4]    = new LCheckBox[4];
            chkHotkeys[4][0] = chkCtrl5;
            chkHotkeys[4][1] = chkShift5;
            chkHotkeys[4][2] = chkAlt5;
            chkHotkeys[4][3] = chkWin5;
            cbbHotkeys[4]    = cbbKeys5;

            chkHotkeys[5]    = new LCheckBox[4];
            chkHotkeys[5][0] = chkCtrl6;
            chkHotkeys[5][1] = chkShift6;
            chkHotkeys[5][2] = chkAlt6;
            chkHotkeys[5][3] = chkWin6;
            cbbHotkeys[5]    = cbbKeys6;
        }