示例#1
0
 public BlockingSessionsForm()
 {
     InitializeComponent();
     OperoseResources.ApplyCustomThemeToControl(this);
     Dock = DockStyle.Fill;
     base.DoubleBuffered = true;
     dgvBlockingList.AllowUserToResizeColumns = true;
     dgvBlockingList.AutoSizeColumnsMode      = DataGridViewAutoSizeColumnsMode.ColumnHeader;
 }
示例#2
0
 public ResetBatchesForm()
 {
     InitializeComponent();
     OperoseResources.ApplyCustomThemeToControl(this);
     Dock                      = DockStyle.Fill;
     DoubleBuffered            = true;
     tlpConfirmBatches.Visible = false;
     btnResetBatches.Enabled   = false;
 }
示例#3
0
 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;
 }
示例#4
0
        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;
        }