Beispiel #1
0
        private void clienteButton_Click(object sender, EventArgs e)
        {
            ClienteForm clienteForm = new ClienteForm
            {
                StartPosition   = FormStartPosition.CenterScreen,
                FormBorderStyle = FormBorderStyle.FixedSingle,
                ControlBox      = true
            };

            clienteForm.ShowDialog();
        }
Beispiel #2
0
 private void fecharClienteButton_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Deseja cancelar suas alterações?", "", MessageBoxButtons.YesNo,
                         MessageBoxIcon.Information) == DialogResult.Yes)
     {
         Close();
         ClienteForm clienteForm = new ClienteForm();
         clienteForm.StartPosition   = FormStartPosition.CenterScreen;
         clienteForm.FormBorderStyle = FormBorderStyle.FixedSingle;
         clienteForm.ControlBox      = true;
         clienteForm.ShowDialog();
     }
 }