Пример #1
0
        private void ExecuteAddScheduledMaintenance(object parameter)
        {
            MaintenanceRecordModel mm = new MaintenanceRecordModel()
            {
                AssetID   = Asset.ID,
                Completed = false,
                Name      = string.Empty,
                ScheduledMaintenanceDate = DateTime.Now
            };

            mm.ID = AddScheduledMaintenance(mm);
            ScheduledMaintenance.Add(mm);
        }
Пример #2
0
        private void ExecuteAddMaintenance(object parameter)
        {
            MaintenanceRecordModel mm = new MaintenanceRecordModel()
            {
                AssetID         = Asset.ID,
                Name            = string.Empty,
                MaintenanceDate = DateTime.Now,
                MaintainedBy    = string.Empty,
                Completed       = true
            };

            mm.ID = AddMaintenanceRecord(mm);
            MaintenanceRecords.Add(mm);
        }