Beispiel #1
0
        private void AddClient_Click(object sender, EventArgs e)
        {
            ClientEdit FormClientEdit = new ClientEdit(0);

            FormClientEdit.ShowDialog(this);

            this.customerTableAdapter.Fill(this.garageDataSet.customer);
        }
Beispiel #2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Int32 tekID;

            if (e.RowIndex >= 0)
            {
                if (this.dataGridView1.Rows[e.RowIndex].IsNewRow == false)
                {
                    tekID = Convert.ToInt32(this.dataGridView1.Rows[e.RowIndex].Cells["idcustomerDataGridViewTextBoxColumn"].Value.ToString());

                    ClientEdit FormClientEdit = new ClientEdit(tekID);
                    FormClientEdit.ShowDialog(this);

                    this.customerTableAdapter.Fill(this.garageDataSet.customer);
                    dataGridView1.CurrentCell = dataGridView1.Rows[e.RowIndex].Cells[0];
                }
            }
        }