public ThreadControl()
        {
            InitializeComponent();
            // this.labeledComboPriority.Combo.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));

            m_errorDisplayingManager = new ErrorDisplayingManager(lblError);

            // BackColor = Color.FromArgb(32,10,20,0);

            labeledComboPriority.Combo.ValueMember   = "Value";
            labeledComboPriority.Combo.DisplayMember = "DisplayName";
            labeledComboPriority.Combo.DataSource    = ThreadPriorityWrapper.AllValues;

            labeledComboPriority.Combo.SelectedItem = ThreadPriority.THREAD_PRIORITY_LOWEST;

            labeledComboLoad.Combo.DataSource   = Enum.GetValues(typeof(LoadType));
            labeledComboLoad.Combo.SelectedItem = LoadType.EmptyLoop;
            //this.ResetBackColor();
        }
        public MainForm()
        {
            InitializeComponent();
            m_errorDisplayingManager = new ErrorDisplayingManager(lblLastError);
            btnFill.Text             = "Add " + Environment.ProcessorCount + " threads";

            m_processWrapper = new ProcessWrapper(NativeMethods.GetCurrentProcess());
            m_processWrapper.PropertyChanged += ProcessWrapperOnPropertyChanged;

            cmbProcessPriority.DataSource   = ProcessPriorityWrapper.AllValues;
            cmbProcessPriority.SelectedItem = m_previousProcessPriority = ProcessPriorityWrapper.IDLE_PRIORITY_CLASS;

            m_lastProcessPropsUpdateTime = DateTime.Now;

            NativeMethods.DisableProcessWindowsGhosting();
            ThreadsManager.Init();
            UpdateAfinnity();

            timer.Enabled = true;
        }