public ScheduleEditorPresenter(IScheduleEditorView view) : base(view)
        {
            var scheduleTypesList = ALData.GetNamesList <ScheduleType>(ALData.ScheduleTypes);

            fView.TypeCombo.AddRange(scheduleTypesList, false);

            var taskStatusesList = ALData.GetNamesList <TaskStatus>(ALData.TaskStatuses);

            fView.StatusCombo.AddRange(taskStatusesList, false);
        }
        public AquariumEditorPresenter(IAquariumEditorView view) : base(view)
        {
            var tankShapesList = ALData.GetNamesList <TankShape>(ALData.TankShapes);

            fView.ShapeCombo.AddRange(tankShapesList, false);

            var waterTypesList = ALData.GetNamesList <AquariumWaterType>(ALData.WaterTypes);

            fView.WaterTypeCombo.AddRange(waterTypesList, false);
        }
        public SpeciesEditorPresenter(ISpeciesEditorView view) : base(view)
        {
            var speciesTypesList = ALData.GetNamesList <SpeciesType>(ALData.SpeciesTypes);

            fView.TypeCombo.AddRange(speciesTypesList, true);

            var swimLevelsList = ALData.GetNamesList <SwimLevel>(ALData.SwimLevels);

            fView.SwimLevelCombo.AddRange(swimLevelsList, false);

            var careLevelsList = ALData.GetNamesList <CareLevel>(ALData.CareLevels);

            fView.CareLevelCombo.AddRange(careLevelsList, false);

            var temperamentsList = ALData.GetNamesList <Temperament>(ALData.Temperaments);

            fView.TemperamentCombo.AddRange(temperamentsList, false);
        }
示例#4
0
        public InhabitantEditorPresenter(IInhabitantEditorView view) : base(view)
        {
            var sexNamesList = ALData.GetNamesList <Sex>(ALData.SexNames);

            fView.SexCombo.AddRange(sexNamesList, false);
        }
示例#5
0
        public DeviceEditorPresenter(IDeviceEditorView view) : base(view)
        {
            var deviceTypesList = ALData.GetNamesList <DeviceType>(ALData.DeviceProps);

            fView.TypeCombo.AddRange(deviceTypesList, true);
        }
        public InventoryEditorPresenter(IInventoryEditorView view) : base(view)
        {
            var inventoryTypesList = ALData.GetNamesList <InventoryType>(ALData.InventoryTypes);

            fView.TypeCombo.AddRange(inventoryTypesList, true);
        }
        public TransferEditorPresenter(ITransferEditorView view) : base(view)
        {
            var transferTypesList = ALData.GetNamesList <TransferType>(ALData.TransferTypes);

            fView.TypeCombo.AddRange(transferTypesList, true);
        }
        public MaintenanceEditorPresenter(IMaintenanceEditorView view) : base(view)
        {
            var maintenanceTypesList = ALData.GetNamesList <MaintenanceType>(ALData.MaintenanceTypes);

            fView.TypeCombo.AddRange(maintenanceTypesList, true);
        }