コード例 #1
0
        private void btnAddZone_Click(object sender, EventArgs e)
        {
            frmAddZone toOpen = new frmAddZone(_zoneService);

            toOpen.ShowDialog();
            UpdateGrid();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var obj = grdZone.SelectedRows[0].DataBoundItem as Zone;

            frmAddZone toOpen = new frmAddZone(_zoneService, obj);

            toOpen.ShowDialog();
            UpdateGrid();
        }
コード例 #3
0
 private void btnUpdateZone_Click(object sender, EventArgs e)
 {
     try
     {
         var        obj    = grdZone.SelectedRows[0].DataBoundItem as Zone;
         frmAddZone toOpen = new frmAddZone(_zoneService, obj);
         toOpen.ShowDialog();
         UpdateGrid();
     }
     catch (Exception)
     {
     }
 }