Beispiel #1
0
        private void panel2_MouseClick(object sender, MouseEventArgs e)
        {
            addCategory addCategory = new addCategory(this);

            addCategory.btnUpdate.Enabled = false;
            addCategory.Show();
        }
Beispiel #2
0
        private void dataGridCategory_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            addCategory add = new addCategory(this);

            if (e.RowIndex >= 0)
            {
                DataGridViewRow dt = this.dataGridCategory.Rows[e.RowIndex];
                add.ID.Text           = dt.Cells[0].Value.ToString();
                add.txtCategory.Text  = dt.Cells[1].Value.ToString();
                add.submit.Enabled    = false;
                add.btnUpdate.Enabled = true;
                add.Show();
                add.label4.Show();
                add.checkDelete.Show();
            }
        }