예제 #1
0
        private void panel2_Click(object sender, EventArgs e)
        {
            addBrand add = new addBrand(this);

            add.Show();
            add.ID.Hide();
            add.btnUpdate.Enabled = false;
            add.checkDelete.Hide();
            add.label4.Hide();
        }
예제 #2
0
        private void dataGridBrand_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            addBrand add = new addBrand(this);

            if (e.RowIndex >= 0)
            {
                DataGridViewRow dt = this.dataGridBrand.Rows[e.RowIndex];
                add.ID.Text        = dt.Cells[0].Value.ToString();
                add.txtBrand.Text  = dt.Cells[1].Value.ToString();
                add.submit.Enabled = false;
                add.ID.Hide();
                add.Show();
            }
        }