private void reloadCombo() { //Plate type Common.BLL.Logic.GasStation.Base__PlateType lPlateType = new Common.BLL.Logic.GasStation.Base__PlateType(Common.Enum.EDatabase.GasStation); DataTable resultPlateType = lPlateType.allData("", "", false).model as DataTable; plateTypeComboBox.fillByTable(resultPlateType, "id", "type"); }
/// <summary> /// Reload data /// </summary> void reload() { Common.BLL.Logic.GasStation.Base__PlateType lPlateType = new Common.BLL.Logic.GasStation.Base__PlateType(Common.Enum.EDatabase.GasStation); CommandResult opResult = lPlateType.allData("", "", false); resultGrid.DataSource = opResult.model; resultGrid.loadHeader(this.GetType().Name); }