Inheritance: System.Windows.Forms.Control
示例#1
0
        public TPEMain()
        {
            InitializeComponent();

            _isCapture     = false;
            DoubleBuffered = true;

            _bugHotKey = new HotKey(Handle, 100, (Keys)SettingsManager.HotKeyCaptureBugValue,
                                    SettingsManager.HotKeyCaptureBugModifier, AddBugPressed);
            _dashboardHotKey = new HotKey(Handle, 101, (Keys)SettingsManager.HotKeyDashboardValue,
                                          SettingsManager.HotKeyDashboardModifier, toDo_Click);

            _magnify2 = new Magnify2();
            Controls.Add(_magnify2);

            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

            ResetScreens();

            //In this way black window will not be visible (in a few moments) in the start of the first capturing
            Location    = _defaultLocation;
            WindowState = FormWindowState.Minimized;
        }
示例#2
0
		public TPEMain()
		{
			InitializeComponent();

			_isCapture = false;
			DoubleBuffered = true;

			_bugHotKey = new HotKey(Handle, 100, (Keys) SettingsManager.HotKeyCaptureBugValue,
									SettingsManager.HotKeyCaptureBugModifier, AddBugPressed);
			_dashboardHotKey = new HotKey(Handle, 101, (Keys) SettingsManager.HotKeyDashboardValue,
									SettingsManager.HotKeyDashboardModifier, toDo_Click);

			_magnify2 = new Magnify2();
			Controls.Add(_magnify2);

			SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

			ResetScreens();
			
			//In this way black window will not be visible (in a few moments) in the start of the first capturing
			Location = _defaultLocation;
			WindowState = FormWindowState.Minimized;
		}