Beispiel #1
0
        private void AddClientButton1_Click(object sender, EventArgs e)
        {
            //Hide();
            AddPosition form = new AddPosition();

            form.FormClosed += (s, args) => BindData();
            form.Show();
        }
Beispiel #2
0
        private void EditToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Hide();
            AddPosition form = new AddPosition();

            form.NameTB.Text  = dataGridView1.CurrentRow.Cells[1].Value.ToString();
            form.zpTB.Text    = dataGridView1.CurrentRow.Cells[2].Value.ToString();
            form.obyazTB.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString();
            form.reqTB.Text   = dataGridView1.CurrentRow.Cells[4].Value.ToString();

            form.EditMode = true;
            form.id       = dataGridView1.CurrentRow.Cells[0].Value.ToString();

            form.FormClosed += (s, args) => BindData();
            form.Show();
        }