public BlockingSessionsForm() { InitializeComponent(); OperoseResources.ApplyCustomThemeToControl(this); Dock = DockStyle.Fill; base.DoubleBuffered = true; dgvBlockingList.AllowUserToResizeColumns = true; dgvBlockingList.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.ColumnHeader; }
public ResetBatchesForm() { InitializeComponent(); OperoseResources.ApplyCustomThemeToControl(this); Dock = DockStyle.Fill; DoubleBuffered = true; tlpConfirmBatches.Visible = false; btnResetBatches.Enabled = false; }
public StuckBatchesForm() { InitializeComponent(); OperoseResources.ApplyCustomThemeToControl(this); Dock = DockStyle.Fill; base.DoubleBuffered = true; gbActivity.Paint += PaintGroupBox; gbDEX_SESSION.Paint += PaintGroupBox; gbDEX_LOCK.Paint += PaintGroupBox; gbSY00800.Paint += PaintGroupBox; gbSY00801.Paint += PaintGroupBox; }
private void InitializeControls() { // Components need to be loaded before any changes can be done via code. InitializeComponent(); UpdateTheme(); OperoseResources.ApplyTheme(this); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); // Sets the window name Text = Program.Title; foreach (var function in functions) { if (function == HORIZONTAL_RULE) { tsMain.Items.Add(new ToolStripSeparator()); } else { var objName = "tsb" + function.Replace(" ", ""); tsMain.Items.Add(new ToolStripButton() { Image = Properties.Resources.BSImage, ImageAlign = System.Drawing.ContentAlignment.MiddleLeft, ImageTransparentColor = System.Drawing.Color.Magenta, Name = objName, Size = new System.Drawing.Size(163, 20), Text = function }); } } AddControlToForm(pMain, HomeControl, ACTION_HOME); UpdateEnvironmentLabel(EnvironmentManager.CurrentEnvironment); HandleCreated += MainForm_HandleCreated; }