Changeset 9017


Ignore:
Timestamp:
12/10/12 13:42:05 (10 years ago)
Author:
ascheibe
Message:

#1986 some cleanups in the Hive Administrator

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  
    331331
    332332    private HiveDowntime ToHiveDowntime(Downtime downtime) {
    333       HiveDowntime app = new HiveDowntime {
     333      HiveDowntime hiveDowntime = new HiveDowntime {
    334334        AllDayEvent = downtime.AllDayEvent,
    335335        EndDate = downtime.EndDate,
     
    344344        Id = downtime.Id
    345345      };
    346       return app;
    347     }
    348 
    349     private Downtime ToDowntime(HiveDowntime app) {
     346      return hiveDowntime;
     347    }
     348
     349    private Downtime ToDowntime(HiveDowntime hiveDowntime) {
    350350      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,
    356356        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)
    359359      };
    360360      return downtime;
Note: See TracChangeset for help on using the changeset viewer.