Exemple #1
0
        private void button6_Click_1(object sender, EventArgs e)
        {
            UCPointOfSale ucpointofsale = new UCPointOfSale();

            splitCont.Panel2.Controls.Clear();
            splitCont.Panel2.Controls.Add(ucpointofsale);
            ucpointofsale.Dock = DockStyle.Fill;
        }
Exemple #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            //for  point of sale
            UCPointOfSale ucpointofsale = new UCPointOfSale();

            splitCont.Panel2.Controls.Clear();
            splitCont.Panel2.Controls.Add(ucpointofsale);
        }
Exemple #3
0
 private void Login()
 {
     frmlogin.ShowDialog();
     if (user.GetPrivelege() == "admin")
     {
         //this.clerkPanel.SendToBack();
         clerkPanel.Visible  = false;
         splitCont.Visible   = true;
         btnCollapse.Visible = true;
         // this.sidePanel.Visible = true;
         //this.btnCollapse.Visible = true;
         timer1.Enabled    = true;
         btnLogout.Visible = true;
     }
     else if (user.GetPrivelege() == "cashier")
     {
         btnCollapse.Visible = false;
         UCPointOfSale ucpointofsale = new UCPointOfSale();
         clerkPanel.Controls.Clear();
         clerkPanel.Controls.Add(ucpointofsale);
         btnCollapse.Visible = false;
         splitCont.Visible   = false;
         timer1.Enabled      = true;
         btnLogout.Visible   = true;
     }
     else if (user.GetPrivelege() == "encoder")
     {
         btnCollapse.Visible = false;
         UCInventory ucinventory = new UCInventory();
         clerkPanel.Controls.Clear();
         clerkPanel.Controls.Add(ucinventory);
         btnCollapse.Visible = false;
         splitCont.Visible   = false;
         timer1.Enabled      = true;
         btnLogout.Visible   = true;
     }
     else
     {
         Close();
     }
 }