private void AppTheme_Load(object sender, EventArgs e) { themes = ThemeService.AvailableThemes(); ThemeService.ActiveTheme(this); lblColor1.BackColor = Color.FromName(themes[0]); lblColor2.BackColor = Color.FromName(themes[1]); lblColor3.BackColor = Color.FromName(themes[2]); lblColor4.BackColor = Color.FromName(themes[3]); lblColor5.BackColor = Color.FromName(themes[4]); lblColor6.BackColor = Color.FromName(themes[5]); // Home.ActiveForm.Close(); foreach (Label control in this.pnlThemeList.Controls) { Label lbl = (Label)control; if (this.BackColor == control.BackColor && control.Tag == "z") { control.BorderStyle = BorderStyle.Fixed3D; control.Text = "Active Theme"; lblColorName.Text = this.BackColor.Name; lblColorName.BorderStyle = BorderStyle.None; } else { control.Text = ""; } } }
private void About_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); lblPassword.BackColor = pnlReset.BackColor; txtPassword.BackColor = pnlReset.BackColor; pnlReset.Left = this.Width / 2 - pnlReset.Width / 2; pnlReset.Top = this.Height / 2 - pnlReset.Height / 2; }
private void Billing_Load(object sender, EventArgs e) { BindComUser(); BindProduct(); a = 0; ThemeService.ActiveTheme(this); dataListProducts.BackgroundColor = this.BackColor; }
private void LogIn_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); lblTitle.Text = MyShopConfigration.ProjectName; this.Top = this.Top + 100; notifyIcon1.BalloonTipTitle = MyShopConfigration.ProjectName; lblTime.Text = DateTime.Now.ToString("t"); Functions.Notification(notifyIcon1, "Active theme : " + this.BackColor.Name.ToString() + " | System name: " + Environment.MachineName + " | Username: "******" | Developers: Nithin R Nair, Maheesh M - MCA 2013 - 16 KVVS IT - Adoor", 100); }
private void EscResetEffect() { ThemeService.ActiveTheme(this); lblDiv.BackColor = Color.White; pnlReset.Visible = false; pnlMain.Visible = true; pnlAbout.Visible = true; txtPassword.Text = ""; lblTitle.Text = "About App"; lblTitle.ForeColor = Color.White; tmrResetWait.Enabled = false; waitTimer = 15; picHome.Visible = true; }
private void lblColor1_Click_1(object sender, EventArgs e) { Label lbl = (Label)sender; if (lbl.Name == "lblColor1") { SysRegedit.SaveReg(MyShopConfigration.ProjectName, "Settings", "ActiveTheme", lbl.BackColor.Name); } else if (lbl.Name == "lblColor2") { SysRegedit.SaveReg(MyShopConfigration.ProjectName, "Settings", "ActiveTheme", lbl.BackColor.Name); } else if (lbl.Name == "lblColor3") { SysRegedit.SaveReg(MyShopConfigration.ProjectName, "Settings", "ActiveTheme", lbl.BackColor.Name); } else if (lbl.Name == "lblColor4") { SysRegedit.SaveReg(MyShopConfigration.ProjectName, "Settings", "ActiveTheme", lbl.BackColor.Name); } else if (lbl.Name == "lblColor5") { SysRegedit.SaveReg(MyShopConfigration.ProjectName, "Settings", "ActiveTheme", lbl.BackColor.Name); } else if (lbl.Name == "lblColor6") { SysRegedit.SaveReg(MyShopConfigration.ProjectName, "Settings", "ActiveTheme", lbl.BackColor.Name); } ThemeService.ActiveTheme(this); foreach (Label control in this.pnlThemeList.Controls) { // Label lbl1 = (Label)control; if (this.BackColor == control.BackColor) { control.BorderStyle = BorderStyle.Fixed3D; control.Text = "Active Theme"; } else { control.BorderStyle = BorderStyle.None; control.Text = ""; } } lblColorName.BorderStyle = BorderStyle.None; lblColorName.Text = this.BackColor.Name; }
private void Settings_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); }
private void AddNewProduct_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); }
private void AddNewUser_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); txtPIN.Text = ""; }
private void ViewProduct_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); DataList.BackgroundColor = this.BackColor; }
private void ViewBill_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); dataListProducts.BackgroundColor = this.BackColor; BindComBillId(Bill.LoadId()); }
private void Home_Load(object sender, EventArgs e) { ThemeService.ActiveTheme(this); lblTime.Text = DateTime.Now.ToString("t"); }