示例#1
0
		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();
		}
示例#2
0
 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);
 }
示例#3
0
 private void ToggleLoader(bool isLoading)
 {
     CrossThreadHelper.SetLoader(this, progress_loader, isLoading);
     _longOperationCB(!isLoading);
     CrossThreadHelper.SetEnable(this, grd_accountList, !isLoading);
 }
示例#4
0
 private void LongOperationCallBack(bool isEnabled)
 {
     CrossThreadHelper.SetEnable(this, panel_side, isEnabled);
 }