private void InitializeForm() { // ModuleID ModuleID = "ACC-02003"; // form visual style AppHelper.ApplyFormStyle(this); AppHelper.ApplyVisualStyle(this.Controls); }
private void InitializeForm() { this.Text = Application.ProductName; this.StartPosition = FormStartPosition.Manual; this.Top = 0; this.Left = 0; this.Width = Screen.PrimaryScreen.WorkingArea.Width; this.Height = Screen.PrimaryScreen.WorkingArea.Height; this.ribbonLabel3.Text = "User: "******" - Logged As: " + AppHelper.appRoleName; this.ribbonLabel1.Text = "Connected to: " + AppHelper.dbServer + " (" + AppHelper.dbName + ")"; this.ribbonLabel4.Text = Application.ProductName + " (Version: " + Application.ProductVersion + ")"; AppHelper.ApplyFormStyle(this); AppHelper.ApplyVisualStyle(this.Controls); }
public frmAbout() { InitializeComponent(); // Initialize the AboutBox to display the product information from the assembly information. // Change assembly information settings for your application through either: // - Project->Properties->Application->Assembly Information // - AssemblyInfo.cs this.Text = String.Format("About {0}", AssemblyTitle); this.labelProductName.Text = AssemblyProduct; this.labelVersion.Text = String.Format("Version {0}", AssemblyVersion); this.labelCompanyName.Text = AssemblyCompany; this.textBoxDescription.Text = AssemblyDescription; AppHelper.ApplyFormStyle(this); AppHelper.ApplyVisualStyle(this.Controls); }
public frmLoginEx() { InitializeComponent(); this.Text = Application.ProductName; this.label8.Text = "Version: " + Application.ProductVersion; this.Height = _hideDbSetting; this.c1TextBox3.Text = AppHelper.dbServer; this.c1TextBox4.Text = AppHelper.dbName; this.c1TextBox6.Text = AppHelper.dbUser; this.c1TextBox7.Text = AppHelper.dbPassword; this.c1TextBox4.TabStop = (this.Height == _showDbSetting); this.c1TextBox6.TabStop = (this.Height == _showDbSetting); this.c1TextBox7.TabStop = (this.Height == _showDbSetting); AppHelper.ApplyFormStyle(this); AppHelper.ApplyVisualStyle(this.Controls); }
private void InitializeForm(CompanyTypes type) { this.type = type; AppHelper.ApplyVisualStyle(this.Controls); if (type == CompanyTypes.Customer) { this.Text = "Customer Opening Balance Entry"; this.label4.Text = "Customer Name"; ModulePrefix = TransactionTypes.TX_BEGINBALANCE_CUSTOMER; } else { this.Text = "Vendor Opening Balance Entry"; this.label4.Text = "Vendor Name"; ModulePrefix = TransactionTypes.TX_BEGINBALANCE_VENDOR; } }
private void UpdateRibbonStyleMenuCheckMark() { // apply ribbon visual style switch (this.VisualStyle) { case VisualStyle.Office2007Blue: this.ribbonToggleButton1.Pressed = true; break; case VisualStyle.Office2007Silver: this.ribbonToggleButton2.Pressed = true; break; case VisualStyle.Office2007Black: this.ribbonToggleButton3.Pressed = true; break; case VisualStyle.Office2010Blue: this.ribbonToggleButton4.Pressed = true; break; case VisualStyle.Office2010Silver: this.ribbonToggleButton5.Pressed = true; break; case VisualStyle.Office2010Black: this.ribbonToggleButton6.Pressed = true; break; case VisualStyle.Windows7: this.ribbonToggleButton7.Pressed = true; break; default: this.ribbonToggleButton1.Pressed = true; break; } // apply visual style for other controls AppHelper.ApplyVisualStyle(this.Controls); }
private void InitializeForm() { AppHelper.ApplyVisualStyle(this.Controls); // transaction type ModulePrefix = TransactionTypes.TX_PURCHASE_ORDER; // grid event handlers _grid.Enter += new EventHandler(_grid_Enter); _grid.AfterEdit += new RowColEventHandler(_grid_AfterEdit); _grid.GetUnboundValue += new UnboundValueEventHandler(_grid_GetUnboundValue); _grid.AfterAddRow += new RowColEventHandler(_grid_AfterAddRow); _grid.KeyDownEdit += new KeyEditEventHandler(_grid_KeyDownEdit); _grid.CellButtonClick += new RowColEventHandler(_grid_CellButtonClick); // grid column setting try { // column headers _grid.Cols["ID"].Caption = "ID"; _grid.Cols["OrderID"].Caption = "Order ID"; _grid.Cols["ItemID"].Caption = "Item ID"; _grid.Cols["ItemCode"].Caption = "Item Code"; _grid.Cols["ItemName"].Caption = "Item Name"; _grid.Cols["Quantity"].Caption = "Quantity"; _grid.Cols["MeasureCode"].Caption = "UoM"; _grid.Cols["MeasureName"].Caption = "Measure Name"; _grid.Cols["UnitPrice"].Caption = "Unit Price"; _grid.Cols["TrxType"].Caption = "Trx Type"; _grid.Cols["TaxPct"].Caption = "Tax (%)"; // read only columns _grid.Cols["ID"].AllowEditing = false; _grid.Cols["OrderID"].AllowEditing = false; _grid.Cols["ItemID"].AllowEditing = false; _grid.Cols["ItemName"].AllowEditing = false; _grid.Cols["MeasureCode"].AllowEditing = false; _grid.Cols["MeasureName"].AllowEditing = false; // hide columns _grid.Cols["ID"].Visible = false; _grid.Cols["ItemID"].Visible = false; _grid.Cols["OrderID"].Visible = false; _grid.Cols["MeasureName"].Visible = false; _grid.Cols["UnitPrice"].Visible = true; _grid.Cols["TaxPct"].Visible = true; _grid.Cols["TrxType"].Visible = true; _grid.Cols["ReferenceID"].Visible = false; _grid.Cols["ReferenceNo"].Visible = false; _grid.Cols["ReferenceDate"].Visible = false; _grid.Cols["ReferenceValue"].Visible = false; // number format _grid.Cols["ID"].Format = "N2"; _grid.Cols["OrderID"].Format = "N2"; _grid.Cols["ItemID"].Format = "N2"; _grid.Cols["Quantity"].Format = "N2"; _grid.Cols["UnitPrice"].Format = "N2"; _grid.Cols["TaxPct"].Format = "N2"; // COmbo option _grid.Cols["ItemCode"].ComboList = "|..."; // column width _grid.Cols["ID"].Width = -1; _grid.Cols["OrderID"].Width = -1; _grid.Cols["ItemID"].Width = -1; _grid.Cols["ItemCode"].Width = 120; _grid.Cols["ItemName"].Width = 150; _grid.Cols["Quantity"].Width = 70; _grid.Cols["MeasureCode"].Width = 50; _grid.Cols["MeasureName"].Width = -1; _grid.Cols["UnitPrice"].Width = 80; _grid.Cols["TrxType"].Width = 70; _grid.Cols["TaxPct"].Width = 50; } catch (Exception ex) { Logger.ErrorRoutine(ex); RibbonMessageBox.Show("ERROR Loading Data!\n" + ex.Message); } }
public frmEntry2() { InitializeComponent(); AppHelper.ApplyFormStyle(this); AppHelper.ApplyVisualStyle(this.Controls); }
private void frmSearch_Helper(int id) { InitializeComponent(); AppHelper.ApplyFormStyle(this); AppHelper.ApplyVisualStyle(this.Controls); }