Exemplo n.º 1
0
        //
        //
        private void insert_client_button_Click(object sender, EventArgs e)//добавляем клиента
        {
            FormNewClient newClientForm = new FormNewClient(false, "", "", "", "", "", "");


            if (newClientForm.ShowDialog() != DialogResult.OK)
            {
                RefreshDGVClient();
            }
        }
Exemplo n.º 2
0
        private void update_client_button_Click(object sender, EventArgs e)//обновляем измененные данные клиента
        {
            FormNewClient newClientForm = new FormNewClient(true, dataGridViewClient.CurrentRow.Cells[0].Value.ToString(),
                                                            dataGridViewClient.CurrentRow.Cells[1].Value.ToString(),
                                                            dataGridViewClient.CurrentRow.Cells[2].Value.ToString(),
                                                            dataGridViewClient.CurrentRow.Cells[3].Value.ToString(),
                                                            dataGridViewClient.CurrentRow.Cells[4].Value.ToString(),
                                                            dataGridViewClient.CurrentRow.Cells[5].Value.ToString());

            if (newClientForm.ShowDialog() != DialogResult.OK)
            {
                RefreshDGVClient();
            }
        }