Example #1
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if ((e.ColumnIndex == 0) && (start.role == 0) || (start.role == 1))
     {
         //edit
         TripsAddEdit tripsAddEdit = new TripsAddEdit(tripsList[e.RowIndex], false, this);
         tripsAddEdit.Show();
     }
 }
Example #2
0
        private void button_add_Click_1(object sender, EventArgs e)
        {
            TripsAddEdit tripsAddEdit = new TripsAddEdit(null, true, this);

            tripsAddEdit.Show();
        }