Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (navButton == btnStock)
            {
                frmAdd_New_Stock_Item frm = new frmAdd_New_Stock_Item();
                frm.ShowDialog();
            }

            else if (navButton == btnMenu)
            {
                Menu_And_Combo form = new Menu_And_Combo();
                form.ShowDialog();
            }
        }
Example #2
0
        void Stock_mouse_click(Object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                ContextMenuStrip myMenu = new System.Windows.Forms.ContextMenuStrip();
                int position_xy__row    = dgvStock.HitTest(e.X, e.Y).RowIndex;
                if (position_xy__row >= 0)
                {
                    myMenu.Items.Add("Maintain").Name  = "Maintain";
                    myMenu.Items.Add("Check In").Name  = "Check In";
                    myMenu.Items.Add("Check Out").Name = "Check Out";
                    myMenu.Items.Add("Take").Name      = "Take";
                    myMenu.Items.Add("Write Off").Name = "Write Off";
                }

                frmAdd_New_Stock_Item myform = new frmAdd_New_Stock_Item();

                myMenu.Show(dgvStock, new Point(e.X, e.Y));
                myMenu.ItemClicked += new ToolStripItemClickedEventHandler(myMenu_ItemClicked);
            }
        }
Example #3
0
        //private void button11_Click(object sender, EventArgs e)
        //{

        //}



        //Maintain Stock Mouse Right Click
        //Maintain Stock Mouse Right Click-------------------------------------------------------------------//


        //Maintain Stock Mouse Right Click
        //Maintain Stock Mouse Right Click-------------------------------------------------------------------//



        //Stock Management Click Event Handlers
        //
        //-----------------------------------------------------------------------//



        private void button1_Click(object sender, EventArgs e)
        {
            if (navButton == quoteBtn)
            {
                SalesAndOrdering sales = new SalesAndOrdering();
                sales.ShowDialog();
                //navigate(quoteBtn);
            }
            if (navButton == btnSuppliers11)
            {
                SupplierForm supplier = new SupplierForm();
                supplier.ShowDialog();
            }
            if (navButton == clientBtn)
            {
                frmAddCustomer customer = new frmAddCustomer();
                customer.ShowDialog();
            }
            if (navButton == supplierBtn)
            {
                frmAddCombo combo = new frmAddCombo();
                combo.ShowDialog();
            }

            if (navButton == jobOBtn)
            {
                Menu_And_Combo menu = new Menu_And_Combo();
                menu.ShowDialog();
            }
            if (navButton == inventoryBtn)
            {
                frmAdd_New_Stock_Item addStock = new frmAdd_New_Stock_Item();
                addStock.ShowDialog();
            }
            if (navButton == empBtn)
            {
                Add_Employee employee = new Add_Employee();
                employee.ShowDialog();
            }
        }