예제 #1
0
        private void bCreate_Click(object sender, EventArgs e)
        {
            LocationEditor iEdt = new LocationEditor();

            iEdt.ShowDialog();
            LoadData();
        }
예제 #2
0
        private void bEdit_Click(object sender, EventArgs e)
        {
            LocationEditor iEdt = new LocationEditor();

            iEdt.LocationId = GetSelectedItemId(dataGridView1);
            iEdt.ShowDialog();
            LoadData();
        }
예제 #3
0
        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);
            }
        }