public UC_visualisation()
        {
            InitializeComponent();
            m_name = new MyText("O_V_name");
            m_caption = new MyText("O_V_caption");
            I_infoText = new MyText("O_V_info");

            nUD_toolTipDelay.Minimum = TOOL_TIP_DELAY_MIN;
            nUD_toolTipDelay.Maximum = TOOL_TIP_DELAY_MAX;

            typeof(ComboBox).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, cB_gestureColor, new object[] { true });
            typeof(ComboBox).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, cB_gestureWidth, new object[] { true });

            
            this.Dock = DockStyle.Fill;

            for (int i = 0; i < Enum.GetValues(typeof(eColors)).Length; i++)
                cB_gestureColor.Items.Add("");

            for (int i = 0; i < WIDTH_COUNT; i++)
                cB_gestureWidth.Items.Add("");

            checkB_showToolTip.Checked = Config.User.MhShowToolTip;
            nUD_toolTipDelay.Value = Math.Min(Math.Max(Config.User.MhToolTipDelay, nUD_toolTipDelay.Minimum), nUD_toolTipDelay.Maximum); 
            checkB_showGesture.Checked = Config.User.DisplayGesture;
            cB_gestureColor.SelectedIndex = (int)Enum.Parse(typeof(eColors), Config.User.PenColor.Name);
            cB_gestureWidth.SelectedIndex = Config.User.PenWidth - 1;
            OnEnableApply(false);
        }
 public UC_blackList()
 {
     InitializeComponent();
     this.Dock = DockStyle.Fill;
     m_name = new MyText("O_BL_name");
     m_caption = new MyText("O_BL_caption");
     I_infoText = new MyText("O_BL_info");
 }
        public UC_generalOptions()
        {    
            InitializeComponent();
            m_name = new MyText("O_General_name");
            m_caption = new MyText("O_General_caption");
            I_infoText = new MyText("O_General_info");       

            m_languages = Translation.GetAllLanguages();
            foreach (string lng in m_languages.Keys)
                cB_languages.Items.Add(lng);

            cB_startup.Checked = Config.User.AutoStart;
            cB_startMinimized.Checked = Config.User.StartMinimized;
            cB_autobehave.Checked = Config.User.AutoBehaviour;
            cB_checkUpdate.Checked = Config.User.CheckForUpdate;
            cB_minToTray.Checked = Config.User.MinToTray;
            cB_closeToTray.Checked = Config.User.CloseToTray;
            cB_languages.SelectedItem = Config.User.Language;
            OnEnableApply(false);
        }        
        public UC_autoBehaviour()
        {
            InitializeComponent();
            I_infoText = new MyText("O_AB_info");
            m_name = new MyText("O_AB_name");
            m_caption = new MyText("O_AB_caption");
            this.Dock = DockStyle.Fill;

            onLoad = true;
            cB_default.Tag = DEFAULT;
            cB_fullscreen.Tag = FULLSCREEN;
            cB_auto1.Tag = AUTO_1;
            cB_auto2.Tag = AUTO_2;
            cB_default.SelectedIndex = Config.User.StateDefault;
            cB_fullscreen.SelectedIndex = Config.User.StateFullScreen;
            cB_auto1.SelectedIndex = Config.User.StateAuto1;
            cB_auto2.SelectedIndex = Config.User.StateAuto2;
            nUD_autocheckTime.Value = Math.Min(Math.Max(Config.User.CheckWndLoop, nUD_autocheckTime.Minimum), nUD_autocheckTime.Maximum);
            onLoad = false;
            OnEnableApply(false);
        }
 public UC_gestureOptions()
 {
     InitializeComponent();
     m_name = new MyText("O_Gestures_name");
     m_caption = new MyText("O_Gestures_caption");
     I_infoText = new MyText("O_Gestures_info");
     cB_classicCurve.Items.AddRange(new object[] { m_enabled, m_disabled });
     cB_doubleBtn.Items.AddRange(new object[] { m_enabled, m_disabled }); 
     cB_wheelBtn.Items.AddRange(new object[] { m_enabled, m_disabled });
     cB_wndHandle.Items.AddRange(new object[] { m_underCursor, m_foreground }); 
     for (int i = 0; i < ConvertValue.MouseButtonsCount; i++)
         cB_toggleBtn.Items.Add(ConvertValue.IndexToMouseBtn(i));
     for (int i = 0; i < SENSITIVE_ZONE_RANGE + 1; i++)
     {
         if (i == 0)
             cB_sensitiveZone.Items.Add("OFF");
         else
             cB_sensitiveZone.Items.Add(i);
     } 
     nUD_deactivateTimeout.Minimum = DEACTIVATION_TIME_MIN;
     nUD_deactivateTimeout.Maximum = DEACTIVATION_TIME_MAX;
     SetValues();
     OnEnableApply(false);
 }