Exemplo n.º 1
0
        void EditClick(object sender, EventArgs e)
        {
            GF.selected_id = Convert.ToInt32(btn_dgv.DGV.SelectedRows[0].Cells[btn_dgv.DGV.Columns.Count - 1].Value);

            using (item_manage managePage = new item_manage())
            {
                managePage.Owner           = this;
                managePage.manage_btn.Text = "UPDATE";
                managePage.Text            = "EDIT ITEM";

                managePage.ShowDialog();
            }
        }
Exemplo n.º 2
0
        void AddClick(object sender, EventArgs e)
        {
            GF.selected_id = 0;

            using (item_manage managePage = new item_manage())
            {
                managePage.Owner           = this;
                managePage.manage_btn.Text = "ADD";
                managePage.Text            = "ADD ITEM";

                //managePage.manage_btn.Top -= 30;

                managePage.ShowDialog();
            }
        }