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