Esempio n. 1
0
        private void buttonCreate_Click(object sender, EventArgs e)
        {
            FormABMClientModify formABMClientModify = new FormABMClientModify(false, null, null);

            formABMClientModify.MdiParent = this.MdiParent;
            MdiParent.Size = formABMClientModify.Size;
            formABMClientModify.Show();
            this.Close();
        }
Esempio n. 2
0
 private void buttonEdit_Click(object sender, EventArgs e)
 {
     if (dgvClient.CurrentRow != null)
     {
         FormABMClientModify formABMClientModify = new FormABMClientModify(true, dgvClient.CurrentRow.Cells[0].Value.ToString(), null);
         formABMClientModify.MdiParent = this.MdiParent;
         MdiParent.Size = formABMClientModify.Size;
         formABMClientModify.Show();
         this.Close();
     }
     else
     {
         MessageBox.Show("Debe seleccionar un usuario a modificar");
     }
 }