Example #1
0
        private void butonSetari_Click(object sender, EventArgs e)
        {
            _obj = this;
            Setari set = new Setari();

            set.Dock = DockStyle.Fill;
            panelContainer.Controls.Add(set);
            panelContainer.Controls["Setari"].BringToFront();
        }
Example #2
0
        private void butonActiuni_Click(object sender, EventArgs e)
        {
            _obj = this;
            ManageProduse mp = new ManageProduse();

            mp.Dock = DockStyle.Fill;
            panelContainer.Controls.Add(mp);
            panelContainer.Controls["ManageProduse"].BringToFront();
        }
Example #3
0
        private void butonAfisare_Click(object sender, EventArgs e)
        {
            _obj = this;
            AfisareTabelProduse atp = new AfisareTabelProduse();

            atp.Dock = DockStyle.Fill;
            panelContainer.Controls.Add(atp);
            panelContainer.Controls["AfisareTabelProduse"].BringToFront();
        }
Example #4
0
        private void HomeCenter_Load(object sender, EventArgs e)
        {
            panelButoane.Hide();
            panelSus.Hide();
            _obj = this;
            UClogin uc = new UClogin();

            uc.Dock = DockStyle.Fill;
            panelContainer.Controls.Add(uc);
            panelContainer.Controls["UClogin"].BringToFront();
        }
Example #5
0
 private void butonAdministratie_Click(object sender, EventArgs e)
 {
     if (Vam.loginAdmin == true)
     {
         _obj = this;
         ManageAngajati ma = new ManageAngajati();
         ma.Dock = DockStyle.Fill;
         panelContainer.Controls.Add(ma);
         panelContainer.Controls["ManageAngajati"].BringToFront();
     }
     else
     if (Vam.loginAngajat == true)
     {
         MessageBox.Show("Nu aveti acces la aceasta optiune!", "Event", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Example #6
0
        private void butonLogout_Click(object sender, EventArgs e)
        {
            DialogResult resDiag = MessageBox.Show("Esti sigur ca vrei sa te deloghezi?",
                                                   "DELOGARE", MessageBoxButtons.OKCancel,
                                                   MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

            if (resDiag == DialogResult.OK)
            {
                panelButoane.Hide();
                panelSus.Hide();
                _obj = this;
                UClogin uc = new UClogin();
                uc.Dock = DockStyle.Fill;
                panelContainer.Controls.Add(uc);
                panelContainer.Controls["UClogin"].BringToFront();
            }
            if (resDiag == DialogResult.Cancel)
            {
                return;
            }
        }