private void MyInitializing()
        {
            typeof(GroupBox).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, groupBox_MainPanel, new object[] { true });
            this.FormBorderStyle = FormBorderStyle.Fixed3D;
            m_tempGesture = new MyGesture(string.Empty);
            m_newGestures = new List<MyGesture>();
            m_selectedGroups = new List<MyGesture>();

            #region User Control Declaration

            uc_openPrgFld = new UC_openPrgFld();
            uc_actions = new UC_actions();
            uc_name = new UC_name();
            uc_gesture = new UC_gesture();
            uc_customKeystrokes = new UC_customKeystrokes();
            uc_selectProgram = new UC_selectProgram();
            uc_plainText = new UC_plainText();
            uc_clipboard = new UC_clipboard();
            uc_mailSearchWeb = new UC_mailSearchWeb();

            groupBox_MainPanel.Controls.Add(uc_actions);
            groupBox_MainPanel.Controls.Add(uc_name);
            groupBox_MainPanel.Controls.Add(uc_gesture);
            groupBox_MainPanel.Controls.Add(uc_openPrgFld);
            groupBox_MainPanel.Controls.Add(uc_customKeystrokes);
            groupBox_MainPanel.Controls.Add(uc_selectProgram);
            groupBox_MainPanel.Controls.Add(uc_plainText);
            groupBox_MainPanel.Controls.Add(uc_clipboard);
            groupBox_MainPanel.Controls.Add(uc_mailSearchWeb);

            foreach (BaseActionControl myControl in groupBox_MainPanel.Controls)
            {                
                myControl.Dock = DockStyle.Fill;
                myControl.TempGesture = m_tempGesture;
                myControl.CanContinue += new BaseActionControl.DlgCanContinue(Continue);
                myControl.ChangeAboutText += new BaseActionControl.DlgChangeAboutText(ChangeAboutText);
                myControl.ChangeInfoText += new BaseActionControl.DlgChangeInfoText(uC_infoIcon1.ChangeInfoText);
                myControl.Visible = false;
            }

            #endregion User Control Declaration

            btn_back.Text = Translation.Btn_back;
            btn_cancel.Text = Translation.Btn_cancel;
            btn_next.Text = Translation.Btn_next;
        }
Beispiel #2
0
        private void MyInitializing()
        {
            typeof(GroupBox).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, groupBox_MainPanel, new object[] { true });
            this.FormBorderStyle = FormBorderStyle.Fixed3D;
            m_tempGesture        = new MyGesture(string.Empty);
            m_newGestures        = new List <MyGesture>();
            m_selectedGroups     = new List <MyGesture>();

            #region User Control Declaration

            uc_openPrgFld       = new UC_openPrgFld();
            uc_actions          = new UC_actions();
            uc_name             = new UC_name();
            uc_gesture          = new UC_gesture();
            uc_customKeystrokes = new UC_customKeystrokes();
            uc_selectProgram    = new UC_selectProgram();
            uc_plainText        = new UC_plainText();
            uc_clipboard        = new UC_clipboard();
            uc_mailSearchWeb    = new UC_mailSearchWeb();

            groupBox_MainPanel.Controls.Add(uc_actions);
            groupBox_MainPanel.Controls.Add(uc_name);
            groupBox_MainPanel.Controls.Add(uc_gesture);
            groupBox_MainPanel.Controls.Add(uc_openPrgFld);
            groupBox_MainPanel.Controls.Add(uc_customKeystrokes);
            groupBox_MainPanel.Controls.Add(uc_selectProgram);
            groupBox_MainPanel.Controls.Add(uc_plainText);
            groupBox_MainPanel.Controls.Add(uc_clipboard);
            groupBox_MainPanel.Controls.Add(uc_mailSearchWeb);

            foreach (BaseActionControl myControl in groupBox_MainPanel.Controls)
            {
                myControl.Dock             = DockStyle.Fill;
                myControl.TempGesture      = m_tempGesture;
                myControl.CanContinue     += new BaseActionControl.DlgCanContinue(Continue);
                myControl.ChangeAboutText += new BaseActionControl.DlgChangeAboutText(ChangeAboutText);
                myControl.ChangeInfoText  += new BaseActionControl.DlgChangeInfoText(uC_infoIcon1.ChangeInfoText);
                myControl.Visible          = false;
            }

            #endregion User Control Declaration

            btn_back.Text   = Translation.Btn_back;
            btn_cancel.Text = Translation.Btn_cancel;
            btn_next.Text   = Translation.Btn_next;
        }
        public Form_modifyGesture()
        {
            InitializeComponent();
            this.Icon = Properties.Resources.modify16;
            canContinue = true;

            #region User Control Declaration
            uc_name = new UC_name();
            uc_gesture = new UC_gesture();
            uc_openPrgFld = new UC_openPrgFld();
            uc_mailSearchWeb = new UC_mailSearchWeb();
            uc_customKeystrokes = new UC_customKeystrokes();
            uc_selectProgram = new UC_selectProgram();
            uc_plainText = new UC_plainText();
            uc_clipboard = new UC_clipboard();
            
            List<BaseActionControl> uc_controls = new List<BaseActionControl>();
            uc_controls.Add(uc_name);
            uc_controls.Add(uc_gesture);
            uc_controls.Add(uc_openPrgFld);
            uc_controls.Add(uc_customKeystrokes);
            uc_controls.Add(uc_selectProgram);
            uc_controls.Add(uc_plainText);
            uc_controls.Add(uc_clipboard);
            uc_controls.Add(uc_mailSearchWeb);

            foreach (BaseActionControl uc_control in uc_controls)
            {
                uc_control.CanContinue += new BaseActionControl.DlgCanContinue(Continue);
                uc_control.ChangeInfoText += new BaseActionControl.DlgChangeInfoText(uC_infoIcon1.ChangeInfoText);
                uc_control.Dock = DockStyle.Fill;
            }

            #endregion User Control Declaration

            btn_cancel.Text = Translation.Btn_cancel;
            btn_ok.Text = Translation.Btn_ok;
        }
        public Form_modifyGesture()
        {
            InitializeComponent();
            this.Icon   = Properties.Resources.modify16;
            canContinue = true;

            #region User Control Declaration
            uc_name             = new UC_name();
            uc_gesture          = new UC_gesture();
            uc_openPrgFld       = new UC_openPrgFld();
            uc_mailSearchWeb    = new UC_mailSearchWeb();
            uc_customKeystrokes = new UC_customKeystrokes();
            uc_selectProgram    = new UC_selectProgram();
            uc_plainText        = new UC_plainText();
            uc_clipboard        = new UC_clipboard();

            List <BaseActionControl> uc_controls = new List <BaseActionControl>();
            uc_controls.Add(uc_name);
            uc_controls.Add(uc_gesture);
            uc_controls.Add(uc_openPrgFld);
            uc_controls.Add(uc_customKeystrokes);
            uc_controls.Add(uc_selectProgram);
            uc_controls.Add(uc_plainText);
            uc_controls.Add(uc_clipboard);
            uc_controls.Add(uc_mailSearchWeb);

            foreach (BaseActionControl uc_control in uc_controls)
            {
                uc_control.CanContinue    += new BaseActionControl.DlgCanContinue(Continue);
                uc_control.ChangeInfoText += new BaseActionControl.DlgChangeInfoText(uC_infoIcon1.ChangeInfoText);
                uc_control.Dock            = DockStyle.Fill;
            }

            #endregion User Control Declaration

            btn_cancel.Text = Translation.Btn_cancel;
            btn_ok.Text     = Translation.Btn_ok;
        }