Beispiel #1
0
        private void addprocess_btn_Click(object sender, EventArgs e)
        {
            addpwi frm = new addpwi();

            frm.MdiParent = this.MdiParent;
            frm.updatepwi_btn.Hide();
            frm.deletepwi_btn.Hide();
            frm.Show();
        }
Beispiel #2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            addpwi          frm = new addpwi();
            DataGridViewRow act = dataGridView1.Rows[e.RowIndex];

            frm.idprocess_txt.Text    = act.Cells["ID"].Value.ToString();
            frm.process_txt.Text      = act.Cells["Proceso"].Value.ToString();
            frm.priceprocess_txt.Text = act.Cells["Precio"].Value.ToString();
            frm.savepwi_btn.Hide();
            frm.MdiParent = this.MdiParent;
            frm.Show();
        }