Example #1
0
        private void создатьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RegClientForm form = new RegClientForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateData();
            }
        }
Example #2
0
        private void редактироватьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                Client client = dataGridView1.SelectedRows[0].DataBoundItem as Client;

                RegClientForm form = new RegClientForm(client);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    UpdateData();
                }
            }
        }
Example #3
0
        private void btnregist_Click(object sender, EventArgs e)
        {
            RegClientForm form = new RegClientForm();

            form.ShowDialog();
        }