Ejemplo n.º 1
0
        private void ivt_pnl_Click(object sender, EventArgs e)
        {
            bool IsOpen   = false;
            int  tabcount = 0;

            foreach (Form f in Application.OpenForms)
            {
                if (f.Text == "Inventory")
                {
                    tabForms.SelectedTab = tabForms.TabPages[tabcount - 2];
                    IsOpen = true;
                    f.Focus();
                    break;
                }
                tabcount++;
            }



            if (IsOpen == false)
            {
                frmInventory frm = new frmInventory();
                frm.FormBorderStyle  = FormBorderStyle.None;
                frm.StartPosition    = FormStartPosition.Manual;
                frm.Location         = new Point((this.Width - frm.Width) / 2, this.Location.Y + (this.Height - frm.Height) / 2);
                this.pnlMain.Visible = false;
                frm.MdiParent        = this;

                frm.Show();
            }
        }
Ejemplo n.º 2
0
        private void inventoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // link the Admindashboard form to inventory form
            frmInventory inventory = new frmInventory();

            inventory.Show();
        }
Ejemplo n.º 3
0
        private void inventoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Here we wil llink form Inventory

            frmInventory inventory = new frmInventory();

            inventory.Show();
        }
Ejemplo n.º 4
0
        private void BtnInvet_Click(object sender, EventArgs e)
        {
            frmInventory frmInventory = new frmInventory();

            frmInventory.SetAdmin();
            panel3.Controls.Clear();
            frmInventory.TopLevel = false;
            panel3.Controls.Add(frmInventory);
            frmInventory.Show();
        }
        private void inventoryTab_Click(object sender, EventArgs e)
        {
            mainpanel.Controls.Clear();
            frmInventory myForm = new frmInventory();

            myForm.FormBorderStyle = FormBorderStyle.None;
            myForm.TopLevel        = false;
            myForm.AutoScroll      = true;
            mainpanel.Controls.Add(myForm);
            myForm.Show();
        }
Ejemplo n.º 6
0
        private void bunifuFlatButton1_Click(object sender, EventArgs e)
        {
            panel2.BackColor = Color.FromArgb(36, 54, 79);
            panel3.BackColor = Color.FromArgb(36, 54, 79);
            panel4.BackColor = Color.Cyan;
            panel5.BackColor = Color.FromArgb(36, 54, 79);
            panel1.BackColor = Color.FromArgb(36, 54, 79);
            frmInventory frmInventory = new frmInventory();

            frmInventory.SetUser();
            UserPanel.Controls.Clear();
            frmInventory.TopLevel = false;
            UserPanel.Controls.Add(frmInventory);
            frmInventory.Show();
        }
Ejemplo n.º 7
0
        private void BtnTonKho_ItemClick(object sender, ItemClickEventArgs e)
        {
            Form f = IsActive(typeof(frmInventory));

            VaiTro_ChucNangDTO pqtk = btnTonKho.Tag as VaiTro_ChucNangDTO;

            if (f == null)
            {
                frmInventory fInventory = new frmInventory(pqtk, username);
                fInventory.ThemNhatKyHeThong += ThemNhatKy_Main;
                fInventory.MdiParent          = this;
                fInventory.Show();
            }
            else
            {
                f.Activate();
            }
        }
Ejemplo n.º 8
0
        private void inventoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmInventory inventory = new frmInventory();

            inventory.Show();
        }
Ejemplo n.º 9
0
        private void bunifuFlatButton6_Click(object sender, EventArgs e)
        {
            frmInventory inventory = new frmInventory();

            inventory.Show();
        }
Ejemplo n.º 10
0
        private void inventoryStatusToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmInventory fi = new frmInventory();

            fi.Show();
        }