示例#1
0
 private void FrmStations_Load(object sender, EventArgs e)
 {
     try
     {
         Initialize();
         cmbType.DataSource = StationTypeController.GetAll();
     }
     catch (Exception ex)
     {
         ViewController.ShowError(ex.Message);
     }
 }
示例#2
0
 private void Search()
 {
     try
     {
         DataGridSearch.DataSource     = StationTypeController.GetAll();
         tabControlContent.SelectedTab = tabSearch;
     }
     catch (Exception ex)
     {
         ViewController.ShowError(ex.Message);
     }
 }