private void btnLogout_Click(object sender, EventArgs e) { Authentication.frmLogin lgfrm = new Authentication.frmLogin(); Settings.frmOrgSettings frmOrg = new Settings.frmOrgSettings(); this.Hide(); lgfrm.Show(); }
private void Main_Load(object sender, EventArgs e) { Authentication.frmLogin lgfrm = new Authentication.frmLogin(); lgfrm.Close(); //Check Background if (LibraryManagmentpro.Properties.Settings.Default.Background == "Light") { btnExit.SymbolColor = Color.Black; btnLogout.SymbolColor = Color.Black; btnMinimize.SymbolColor = Color.Black; btnSettings.SymbolColor = Color.Black; styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.VisualStudio2012Light; } else if (LibraryManagmentpro.Properties.Settings.Default.Background == "Dark") { styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.VisualStudio2012Dark; btnExit.SymbolColor = Color.White; btnLogout.SymbolColor = Color.White; btnMinimize.SymbolColor = Color.White; btnSettings.SymbolColor = Color.White; } //Chack User Type if (lblUserType.Text == "Super") { itemContainer1.Visible = true; itemContainer4.Visible = true; LibraryManagmentpro.Properties.Settings.Default.UserType = "Super"; LibraryManagmentpro.Properties.Settings.Default.Save(); } else { itemContainer1.Visible = false; itemContainer4.Visible = false; LibraryManagmentpro.Properties.Settings.Default.UserType = "Normal"; LibraryManagmentpro.Properties.Settings.Default.Save(); } // Number Of Books lbNoBook.Text = " Total Books : " + BooksObj.TotalBooks.ToString() + " || "; lblTotalMember.Text = " Total Member : " + MemberObj.TotalMember.ToString() + " || "; lblTotalEmployees.Text = " Total Employees : " + EmpoyeeObj.TotalEmployees + " || "; lblNotavelebleBooks.Text = " Not Avelable Books : " + BooksObj.TotalIssueBook + " || "; }