Exemplo n.º 1
0
        private void frmCategoryRecord_FormClosing(object sender, FormClosingEventArgs e)
        {
            Hide();
            var frm = new frmCategory();

            frm.Show();
        }
Exemplo n.º 2
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var dr = dataGridView1.SelectedRows[0];
            Hide();
            var frm = new frmCategory();


            frm.Show();
            frm.txtCategoryName.Text = dr.Cells[0].Value.ToString();
            frm.textBox1.Text = dr.Cells[0].Value.ToString();
            frm.btnDelete.Enabled = true;
            frm.btnUpdate.Enabled = true;
            frm.txtCategoryName.Focus();
            frm.btnSave.Enabled = false;
        }
Exemplo n.º 3
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var dr = dataGridView1.SelectedRows[0];

            Hide();
            var frm = new frmCategory();


            frm.Show();
            frm.txtCategoryName.Text = dr.Cells[0].Value.ToString();
            frm.textBox1.Text        = dr.Cells[0].Value.ToString();
            frm.btnDelete.Enabled    = true;
            frm.btnUpdate.Enabled    = true;
            frm.txtCategoryName.Focus();
            frm.btnSave.Enabled = false;
        }
Exemplo n.º 4
0
 private void categoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var frm = new frmCategory();
     frm.Show();
 }
Exemplo n.º 5
0
 private void frmCategoryRecord_FormClosing(object sender, FormClosingEventArgs e)
 {
     Hide();
     var frm = new frmCategory();
     frm.Show();
 }
Exemplo n.º 6
0
        private void categoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new frmCategory();

            frm.Show();
        }