public ucFunctions() { InitializeComponent(); if (Utility.InDesignMode) { return; } CrossThreadHelper = new CrossThreadHelper(this); EnableDoubleBuffering(); tabStrip1.Height = ClientSize.Height - tabStrip1.Top; tabStrip1.Tabs.Clear(); Controller.Instance.CompileErrorEvent += HighlightError; #if DEBUG rtbOutput.Dock = DockStyle.Fill; rtbOutput.BackColor = Color.FromKnownColor(KnownColor.ControlDark); #endif lblStatus.Top = 1; lblStatus.Left = 0; lblStatus.Width = ClientSize.Width; lblStatus.Height = ClientSize.Height; lblStatus.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; tabStrip1.Visible = false; tabStrip1.CloseButtonOnTabsAlwaysDisplayed = true; tabStrip1.CloseButtonOnTabsVisible = true; tabStrip1.CloseButtonPosition = eTabCloseButtonPosition.Right; tabStrip1.CloseButtonVisible = true; SetErrorListColumnWidths(); //Debugger.Debugger.SpinUpDebugProcess(); }
private void ToggleStartStopBtn(object pkId) { if (_userState.ContainsKey(pkId) && _userState[pkId].Contains("Loggedin")) { CrossThreadHelper.SetVisiblity(this, btn_editUser, false); CrossThreadHelper.SetVisiblity(this, btn_deleteUser, false); CrossThreadHelper.SetText(this, btn_startAccount, "Stop Account"); } else { CrossThreadHelper.SetVisiblity(this, btn_editUser, true); CrossThreadHelper.SetVisiblity(this, btn_deleteUser, true); CrossThreadHelper.SetText(this, btn_startAccount, "Start Account"); } CrossThreadHelper.SetVisiblity(this, btn_startAccount, true); }
private void ToggleLoader(bool isLoading) { CrossThreadHelper.SetLoader(this, progress_loader, isLoading); _longOperationCB(!isLoading); CrossThreadHelper.SetEnable(this, grd_accountList, !isLoading); }
private void LongOperationCallBack(bool isEnabled) { CrossThreadHelper.SetEnable(this, panel_side, isEnabled); }