private void frmOtherSetting_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; btnFooterCancel.BackgroundImage = B_Leave; btnFooterSave.BackgroundImage = B_Leave; btnPrinterSave.BackgroundImage = B_Leave; btnPrinterCancel.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); lblPCName.Text = Environment.MachineName; txtMachineName.Text = Environment.MachineName; LoadStore(); Load_PC_Store_Mapping(); BindStoreSettingData(); LoadPrinter(); BindPrinterDetails(); LoadData(); ClearAll(); groupBox1.Enabled = false; }
private void Size_Master_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; btnAddMore.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); FillSizeTypeData(); FillSearchBySizeTypeData(); InitItemTable(); dataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.EnableResizing; //Most time consumption enum is DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders dataGridView1.RowHeadersVisible = false; // set it to false if not needed LoadData(); grpSizeType.Enabled = false; }
private void Store_Master_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); LoadData(); }
private void frmUserRights_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); InitRightTable(); LoadRightGrid(); loadUser(); }
private void Employee_Details_Load(object sender, EventArgs e) { dtpDOB.ShowCheckBox = true; dtpDOB.Checked = false; btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); LoadData(); }
private void Category_Master_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; //clsUtility.IsAdmin = true;//removed ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); //ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning, clsUtility.IsAdmin); LoadData(); }
private void frmUserManagement_Load(object sender, EventArgs e) { //clsUtility._UserMessageType = clsUtility.MessageType.SparklePurple; //clsUtility._UserMessageType = clsUtility.MessageType.Office2010Blue; LoadTheme(); EnableDisable(false); //DBName = ObjDAL.GetCurrentDBName(true); //string a = ObjDAL.ReadConStringFromFile("AppConfig/ServerConfig.sc", true); //string[] arr = a.Split(new char[] { ';', '=' }); //DBName = arr[3].ToString(); LoadData(); ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning, admin); }
private void Delivering_Purchase_Bill_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; btnSearch.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); FillStoreData(); FillSizeTypeData(); FillCountryData(); FillBrandData(); FillCategoryData(); //InitItemTable(); }
private void Size_Master_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; btnAddMore.BackgroundImage = B_Leave; //clsUtility.IsAdmin = true;//removed ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); //ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning, clsUtility.IsAdmin); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); FillSizeTypeData(); FillSearchBySizeTypeData(); InitItemTable(); LoadData(); grpSizeType.Enabled = false; }
private void Product_Master_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; btnImport.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); dataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.EnableResizing; //Most time consumption enum is DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders dataGridView1.RowHeadersVisible = false; // set it to false if not needed LoadData(); FillDepartmentData(); FillSearchCategory(); grpProduct.Focus(); }
private void Purchase_Invoice_Load(object sender, EventArgs e) { btnAdd.BackgroundImage = B_Leave; btnSave.BackgroundImage = B_Leave; btnEdit.BackgroundImage = B_Leave; btnUpdate.BackgroundImage = B_Leave; btnDelete.BackgroundImage = B_Leave; btnCancel.BackgroundImage = B_Leave; ObjUtil.RegisterCommandButtons(btnAdd, btnSave, btnEdit, btnUpdate, btnDelete, btnCancel); ObjUtil.SetCommandButtonStatus(clsCommon.ButtonStatus.Beginning); dataGridView1.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.EnableResizing; //Most time consumption enum is DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders dataGridView1.RowHeadersVisible = false; // set it to false if not needed LoadData(); FillSupplierData(); FillCountryData(); dtDate = DateTime.Now; dtpBillDate.MaxDate = dtDate; }