Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/20/11 14:16:53 (13 years ago)
Author:
cneumuel
Message:

#1233

  • renamed UptimeCalendar and Appointment to Downtime
  • added service methods to delete plugins and get plugin by hash
  • made reverted TransactionManager change, made it non-static and added interface
  • moved magic numbers to application settings
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administration/3.4/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administration/3.4/Views/ResourcesView.cs

    r6451 r6452  
    277277        ServiceLocator.Instance.CallHiveService(service => {
    278278          var appointments = service.GetScheduleForResource(resourceId);
    279           ItemList<Appointment> ias = new ItemList<Appointment>();
     279          ItemList<Downtime> ias = new ItemList<Downtime>();
    280280          appointments.ForEach(a => ias.Add(a));
    281281          scheduleView.Invoke(new Action(() => scheduleView.Content = ias));
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administration/3.4/Views/ScheduleView.cs

    r6451 r6452  
    3333namespace HeuristicLab.Clients.Hive.Administration.Views {
    3434  [View("ScheduleView")]
    35   [Content(typeof(IItemList<Appointment>), IsDefaultView = true)]
     35  [Content(typeof(IItemList<Downtime>), IsDefaultView = true)]
    3636  public partial class ScheduleView : ItemView {
    37     public new IItemList<Appointment> Content {
    38       get { return (IItemList<Appointment>)base.Content; }
     37    public new IItemList<Downtime> Content {
     38      get { return (IItemList<Downtime>)base.Content; }
    3939      set { base.Content = value; }
    4040    }
     
    9393    private void UpdateCalendarFromContent() {
    9494      offlineTimes.Clear();
    95       foreach (Appointment app in Content) {
     95      foreach (Downtime app in Content) {
    9696        offlineTimes.Add(new HiveAppointment {
    9797          AllDayEvent = app.AllDayEvent,
     
    331331
    332332    private void btnSaveCal_Click(object sender, EventArgs e) {
    333       List<Appointment> appointments = new List<Appointment>();
     333      List<Downtime> appointments = new List<Downtime>();
    334334      foreach (HiveAppointment app in offlineTimes) {
    335335        if (app.Deleted) {
     
    340340          });
    341341        } else if (app.Changed) {
    342           Appointment apdto = new Appointment {
     342          Downtime apdto = new Downtime {
    343343            AllDayEvent = app.AllDayEvent,
    344344            EndDate = app.EndDate,
     
    355355        //TODO: find a sane way to do this
    356356        ServiceLocator.Instance.CallHiveService(service => {
    357           foreach (Appointment app in appointments) {
     357          foreach (Downtime app in appointments) {
    358358            service.AddAppointment(app);
    359359          }
Note: See TracChangeset for help on using the changeset viewer.