Changeset 9017
- Timestamp:
- 12/10/12 13:42:05 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ScheduleView.cs
r9016 r9017 331 331 332 332 private HiveDowntime ToHiveDowntime(Downtime downtime) { 333 HiveDowntime app= new HiveDowntime {333 HiveDowntime hiveDowntime = new HiveDowntime { 334 334 AllDayEvent = downtime.AllDayEvent, 335 335 EndDate = downtime.EndDate, … … 344 344 Id = downtime.Id 345 345 }; 346 return app;347 } 348 349 private Downtime ToDowntime(HiveDowntime app) {346 return hiveDowntime; 347 } 348 349 private Downtime ToDowntime(HiveDowntime hiveDowntime) { 350 350 Downtime downtime = new Downtime { 351 AllDayEvent = app.AllDayEvent,352 EndDate = app.EndDate,353 StartDate = app.StartDate,354 Recurring = app.Recurring,355 RecurringId = app.RecurringId,351 AllDayEvent = hiveDowntime.AllDayEvent, 352 EndDate = hiveDowntime.EndDate, 353 StartDate = hiveDowntime.StartDate, 354 Recurring = hiveDowntime.Recurring, 355 RecurringId = hiveDowntime.RecurringId, 356 356 ResourceId = HiveAdminClient.Instance.DowntimeForResourceId, 357 Id = app.Id,358 DowntimeType = (DowntimeType)Enum.Parse(typeof(DowntimeType), app.Subject)357 Id = hiveDowntime.Id, 358 DowntimeType = (DowntimeType)Enum.Parse(typeof(DowntimeType), hiveDowntime.Subject) 359 359 }; 360 360 return downtime;
Note: See TracChangeset
for help on using the changeset viewer.