示例#1
0
        private void pbxAdd_Click(object sender, EventArgs e)
        {
            CategoryDatailsForm categoryDetailsForm = new CategoryDatailsForm();

            categoryDetailsForm.Show();
            this.Hide();
        }
示例#2
0
        private void pbxEdit_Click(object sender, EventArgs e)
        {
            int idCategory = Int32.Parse(dgvCategory.SelectedRows[0].Cells[0].Value.ToString());

            CategoryDatailsForm categoryDetails = new CategoryDatailsForm(idCategory);

            categoryDetails.Show();

            this.Close();
        }