Beispiel #1
0
        private void AddMaster_Click(object sender, EventArgs e)
        {
            MasterEdit FormMasterEdit = new MasterEdit(0);

            FormMasterEdit.ShowDialog(this);

            this.staffTableAdapter.Fill(this.garageDataSet.staff);
        }
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["idstaffDataGridViewTextBoxColumn"].Value.ToString());

                    MasterEdit FormMasterEdit = new MasterEdit(tekID);
                    FormMasterEdit.ShowDialog(this);

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