private void bCreate_Click(object sender, EventArgs e) { LocationEditor iEdt = new LocationEditor(); iEdt.ShowDialog(); LoadData(); }
private void bEdit_Click(object sender, EventArgs e) { LocationEditor iEdt = new LocationEditor(); iEdt.LocationId = GetSelectedItemId(dataGridView1); iEdt.ShowDialog(); LoadData(); }
private void buttonAddNewLocation_Click(object sender, EventArgs e) { LocationEditor le = new LocationEditor(); if (le.ShowDialog() == DialogResult.OK) { // Created a valid location so //DailyData.Current.NewLocations.Add(le.TBPLocation); //this.locationsAM.Add(le.TBPLocation); this.locationsPM.Add(le.TBPLocation); } }