private void btnSales_Click(object sender, EventArgs e)
 {
     frmSales             = new frm_Sales();
     frmSales.FormClosed += new FormClosedEventHandler(frmSales_FormClosed);
     frmSales.MdiParent   = this;
     frmSales.Show();
     CommonClass.setToolTipButtonStates(false);
     btnSales.Enabled = false;
     ts_side.Visible  = true;
 }
 private void btnReciepts_Click(object sender, EventArgs e)
 {
     frmRecipts             = new frm_Recipts(strUsername);
     frmRecipts.FormClosed += new FormClosedEventHandler(frmRecipts_FormClosed);
     frmRecipts.MdiParent   = this;
     frmRecipts.Show();
     CommonClass.setToolTipButtonStates(true, true, false, true, false, false);
     btnReciepts.Enabled = false;
     ts_side.Visible     = true;
 }
Exemple #3
0
 public void restore()
 {
     CommonClass.setToolTipButtonStates(btnAdd, btnEdit, btnSave, btnPrint, btnDelete, btnClear);
 }
 private void frmSales_FormClosed(object sender, EventArgs e)
 {
     btnSales.Enabled = true;
     CommonClass.setToolTipButtonStates(false);
     btnSales.Enabled = true;
 }
 private void frmUserCtrl_FormClosed(object sender, EventArgs e)
 {
     CommonClass.setToolTipButtonStates(false);
     userControlToolStripMenuItem.Enabled = true;
 }
 private void frm_Main_Load_1(object sender, EventArgs e)
 {
     timer1.Start();
     ts_side.Visible = false;
     CommonClass.setToolTipButtonStates(false);
 }
 private void frm_Main_Load(object sender, EventArgs e)
 {
     //set all the side bar buttons into false
     CommonClass.setToolTipButtonStates(false);
 }
 private void frmRecipts_FormClosed(object sender, EventArgs e)
 {
     btnReciepts.Enabled = true;
     CommonClass.setToolTipButtonStates(false);
 }