Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/Appointment.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/Appointment.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/Appointment.cs	(revision 5457)
@@ -0,0 +1,253 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Windows.Forms;
+using System.Diagnostics;
+using System.Data;
+using System.Xml.Serialization;
+
+namespace HeuristicLab.Calendar
+{
+	public class Appointment : iAppointment
+    {
+
+		#region " Private Fields "
+		private int layer;
+		private string group;
+		private DateTime startDate;
+		private DateTime endDate;
+		private bool locked;
+		private Color color = Color.White;
+		private Color textColor = Color.Black;
+		private int appointmentId = 0;
+		private Color borderColor = Color.Blue;
+		private bool drawBorder = false;
+		private string subject = string.Empty;
+		private bool allDayEvent = false;
+		private bool reccuringEvent = false;
+    private Guid reccuringID = Guid.Empty;
+		internal int conflictCount;
+		#endregion
+
+
+        public Appointment()
+        {
+			color = Color.White;
+			borderColor = Color.Blue;
+			Subject = "New Appointment";
+		}
+
+		#region " Public Properties "
+        [XmlIgnore]
+		public int Layer
+        {
+            get { return layer; }
+            set { layer = value; }
+        }
+
+        [XmlIgnore]
+        public string Group
+        {
+            get { return group; }
+            set { group = value; }
+        }
+
+        [XmlAttribute("Locked")]
+        [System.ComponentModel.DefaultValue(false)]
+        public bool Locked
+        {
+            get
+            {
+                return locked;
+            }
+            set
+            {
+                locked = value;
+                OnLockedChanged();
+            }
+        }
+
+        [XmlIgnore]
+        public Color Color
+		{
+			get
+			{
+				return color;
+			}
+			set
+			{
+				color = value;
+				OnColorChanged();
+			}
+		}
+
+        [XmlIgnore]
+        public Color TextColor
+        {
+            get
+            {
+                return textColor;
+            }
+            set
+            {
+                textColor = value;
+                OnTextColorChanged();
+            }
+        }
+
+        [XmlIgnore]
+		public Color BorderColor
+		{
+			get
+			{
+				return borderColor;
+			}
+			set
+			{
+				borderColor = value;
+				OnBorderColorChanged();
+			}
+		}
+
+        [XmlIgnore]
+		public bool DrawBorder
+        {
+            get
+            {
+                return drawBorder;
+            }
+            set
+            {
+                drawBorder = value;
+            }
+        }
+
+        [XmlAttribute("AllDayEvent")]
+        public bool AllDayEvent
+        {
+            get
+            {
+                return allDayEvent;
+            }
+            set
+            {
+                allDayEvent = value;
+                OnAllDayEventChanged();
+            }
+        }
+
+        [XmlAttribute("Recurring")]
+		public bool Recurring
+		{
+			get
+			{
+				return reccuringEvent;
+			}
+			set
+			{
+				reccuringEvent = value;
+			}
+		}
+        [XmlAttribute("RecurringId")]
+    public Guid RecurringId {
+      get {
+        return reccuringID;
+      }
+      set {
+        reccuringID = value;
+      }
+    }
+		#endregion
+
+		#region " Events "
+		protected virtual void OnStartDateChanged()
+		{
+		}
+		protected virtual void OnEndDateChanged()
+		{
+		}
+		protected virtual void OnLockedChanged()
+		{
+		}
+		protected virtual void OnColorChanged()
+		{
+		}
+		protected virtual void OnTextColorChanged()
+		{
+		}
+		protected virtual void OnBorderColorChanged()
+		{
+		}
+		protected virtual void OnTitleChanged()
+		{
+		}
+		protected virtual void OnAllDayEventChanged()
+		{
+		}
+		#endregion
+
+		#region iAppointment Members
+        [XmlAttribute("StartDate")]
+		public DateTime StartDate
+		{
+			get
+			{
+				return startDate;
+			}
+			set
+			{
+				startDate = value;
+				OnStartDateChanged();
+
+			}
+		}
+
+        [XmlAttribute("EndDate")]
+		public DateTime EndDate
+		{
+			get
+			{
+				return endDate;
+			}
+			set
+			{
+				endDate = value;
+				OnEndDateChanged();
+			}
+		}
+
+        [XmlIgnore]
+		public int AppointmentId
+		{
+			get
+			{
+				return appointmentId;
+			}
+			set
+			{
+				appointmentId = value;
+			}
+		}
+        [XmlElement("Subject")]
+		public string Subject
+		{
+			get
+			{
+				return subject;
+			}
+			set
+			{
+				subject = value;
+			}
+		}
+
+        [XmlIgnore]
+		public string Location { get; set; }
+
+        [XmlIgnore]
+		public string Note { get; set; }
+		#endregion
+	}
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentEventArgs.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentEventArgs.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentEventArgs.cs	(revision 5457)
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+    public class AppointmentEventArgs : EventArgs
+    {
+        public AppointmentEventArgs( Appointment appointment )
+        {
+            m_Appointment = appointment;
+        }
+
+        private Appointment m_Appointment;
+
+        public Appointment Appointment
+        {
+            get { return m_Appointment; }
+        }
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentHieghtDrawMode.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentHieghtDrawMode.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentHieghtDrawMode.cs	(revision 5457)
@@ -0,0 +1,15 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+	public enum AppHeightDrawMode
+	{
+		TrueHeightAll = 0, // all appointments have height proportional to true length
+		FullHalfHourBlocksAll = 1, // all appts drawn in half hour blocks
+		EndHalfHourBlocksAll = 2, // all appts boxes start at actual time, end in half hour blocks
+		FullHalfHourBlocksShort = 3, // short (< 30 mins) appts drawn in half hour blocks
+		EndHalfHourBlocksShort = 4, // short appts boxes start at actual time, end in half hour blocks
+	}
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentSlot.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentSlot.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentSlot.cs	(revision 5457)
@@ -0,0 +1,10 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+	public class AppointmentSlot
+	{
+	}
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentSlotDuration.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentSlotDuration.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/AppointmentSlotDuration.cs	(revision 5457)
@@ -0,0 +1,16 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+	public enum AppointmentSlotDuration
+	{
+		SixtyMinutes = 1,
+		ThirtyMinutes = 2,
+		TwentyMinutes = 3,
+		FifteenMinutes = 4,
+		TenMinutes = 6,
+		FiveMinutes = 12,	
+	}
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/NewAppointmentEvent.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/NewAppointmentEvent.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/NewAppointmentEvent.cs	(revision 5457)
@@ -0,0 +1,39 @@
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+    public class NewAppointmentEventArgs : EventArgs
+    {
+        public NewAppointmentEventArgs( string title, DateTime start, DateTime end )
+        {
+            m_Title = title;
+            m_StartDate = start;
+            m_EndDate = end;
+        }
+
+        private string m_Title;
+
+        public string Title
+        {
+            get { return m_Title; }
+        }
+
+        private DateTime m_StartDate;
+
+        public DateTime StartDate
+        {
+            get { return m_StartDate; }
+        }
+
+        private DateTime m_EndDate;
+
+        public DateTime EndDate
+        {
+            get { return m_EndDate; }
+        }
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/ResolveAppointmentsEvent.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/ResolveAppointmentsEvent.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/ResolveAppointmentsEvent.cs	(revision 5457)
@@ -0,0 +1,42 @@
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+    public class ResolveAppointmentsEventArgs : EventArgs
+    {
+        public ResolveAppointmentsEventArgs(DateTime start, DateTime end)
+        {
+            m_StartDate = start;
+            m_EndDate = end;
+            m_Appointments = new List<Appointment>();
+        }
+
+        private DateTime m_StartDate;
+
+        public DateTime StartDate
+        {
+            get { return m_StartDate; }
+            set { m_StartDate = value; }
+        }
+
+        private DateTime m_EndDate;
+
+        public DateTime EndDate
+        {
+            get { return m_EndDate; }
+            set { m_EndDate = value; }
+        }
+
+        private List<Appointment> m_Appointments;
+
+        public List<Appointment> Appointments
+        {
+            get { return m_Appointments; }
+            set { m_Appointments = value; }
+        }
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/iAppointment.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/iAppointment.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Appointment/iAppointment.cs	(revision 5457)
@@ -0,0 +1,16 @@
+﻿using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+	interface iAppointment
+	{
+		int AppointmentId { get; set; }
+		DateTime StartDate { get; set; }
+		DateTime EndDate { get; set; }
+		string Subject { get; set; }
+		string Location { get; set; }
+		string Note { get; set; }
+	}
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/CalendarStorage/iCalendarStorage.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/CalendarStorage/iCalendarStorage.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/CalendarStorage/iCalendarStorage.cs	(revision 5457)
@@ -0,0 +1,9 @@
+﻿using System;
+using System.Collections.Generic;
+
+namespace HeuristicLab.Calendar.DataStorage
+{
+	public interface iCalendarStorage
+	{
+	}
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/DayView License.txt
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/DayView License.txt	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/DayView License.txt	(revision 5457)
@@ -0,0 +1,14 @@
+﻿HeuristicLab.Calender is based on the DayView Calendar Control from http://calendar.codeplex.com/.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation (www.fsf.org); either version 2 of the 
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+A copy of the GNU General Public License is available at
+http://www.fsf.org/licensing/licenses
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/DayView.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/DayView.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/DayView.cs	(revision 5457)
@@ -0,0 +1,1632 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+using System.ComponentModel;
+using System.Drawing.Drawing2D;
+
+namespace HeuristicLab.Calendar
+{
+    public class DayView : Control
+    {
+        public DayView()
+        {
+            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
+            SetStyle(ControlStyles.ResizeRedraw, true);
+            SetStyle(ControlStyles.Selectable, true);
+			SetStyle(ControlStyles.AllPaintingInWmPaint, true);
+			SetStyle(ControlStyles.UserPaint, true);
+
+            scrollbar = new VScrollBar();
+            scrollbar.SmallChange = appointmentSlotHeight;
+            scrollbar.LargeChange = appointmentSlotHeight * 2;
+            scrollbar.Dock = DockStyle.Right;
+            scrollbar.Visible = allowScroll;
+            scrollbar.Scroll += new ScrollEventHandler(scrollbar_Scroll);
+            AdjustScrollbar();
+            scrollbar.Value = (startHour * 2 * appointmentSlotHeight);
+
+            this.Controls.Add(scrollbar);
+
+            editbox = new TextBox();
+            editbox.Multiline = true;
+            editbox.Visible = false;
+            editbox.BorderStyle = BorderStyle.None;
+            editbox.KeyUp += new KeyEventHandler(editbox_KeyUp);
+            editbox.Margin = Padding.Empty;
+
+            this.Controls.Add(editbox);
+
+            drawTool = new DrawTool();
+            drawTool.DayView = this;
+
+            selectionTool = new SelectionTool();
+            selectionTool.DayView = this;
+            selectionTool.Complete += new EventHandler(selectionTool_Complete);
+
+            activeTool = drawTool;
+
+            UpdateWorkingHours();
+
+            this.Renderer = new Office12Renderer();
+        }
+
+		#region " Private Fields "
+		private TextBox editbox;
+		private VScrollBar scrollbar;
+		private DrawTool drawTool;
+		private SelectionTool selectionTool;
+		private int allDayEventsHeaderHeight = 20;
+
+		private DateTime workStart;
+		private DateTime workEnd;
+
+		private int hourLabelWidth = 50;
+		private int hourLabelIndent = 2;
+		private int dayHeadersHeight = 20;
+		private int appointmentGripWidth = 5;
+		private int dayGripWidth = 5;
+		private int horizontalAppointmentHeight = 20;
+
+		private AppHeightDrawMode appHeightMode = AppHeightDrawMode.TrueHeightAll;
+		private int appointmentSlotHeight = 24;
+		private AbstractRenderer renderer;
+		private bool ampmdisplay = false;
+		private bool drawAllAppBorder = false;
+		private bool minHalfHourApp = false;
+		private int daysToShow = 1;
+		private SelectionType selection;
+		private DateTime startDate;
+		private int startHour = 8;
+		private Appointment selectedAppointment;
+		private DateTime selectionStart;
+		private DateTime selectionEnd;
+		private ITool activeTool;
+		private int workingHourStart = 8;
+		private int workingMinuteStart = 30;
+		private int workingHourEnd = 18;
+		private int workingMinuteEnd = 30;
+		private bool selectedAppointmentIsNew;
+		private bool allowScroll = true;
+		private bool allowInplaceEditing = true;
+		private bool allowNew = true;
+		private bool enableShadows = true;
+		private bool enableRoundCorners = false;
+		private bool enableTimeIndicator = false;
+		private bool enableDurationDisplay = false;
+		private AppointmentSlotDuration appointmentSlotDuration = AppointmentSlotDuration.ThirtyMinutes;
+
+		internal System.Collections.Hashtable cachedAppointments = new System.Collections.Hashtable();
+		internal Dictionary<Appointment, AppointmentView> appointmentViews = new Dictionary<Appointment, AppointmentView>();
+		internal Dictionary<Appointment, AppointmentView> longappointmentViews = new Dictionary<Appointment, AppointmentView>();
+		#endregion
+
+		#region Properties
+		[Category("DailyView")]
+		[System.ComponentModel.DefaultValue(5)]
+		public int DayGripWidth
+		{
+			get
+			{
+				return dayGripWidth;
+			}
+			set
+			{
+				if (dayGripWidth == value)
+					return;
+
+				dayGripWidth = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView")]
+		[System.ComponentModel.DefaultValue(20)]
+		public int DayHeadersHeight
+		{
+			get
+			{
+				return dayHeadersHeight;
+			}
+			set
+			{
+				if (dayHeadersHeight == value)
+					return;
+
+				dayHeadersHeight = value;
+				this.Invalidate();
+			}
+		}
+		
+		[Category("DailyView")]
+		public bool AmPmDisplay
+        {
+            get
+            {
+                return ampmdisplay;
+            }
+            set
+            {
+				if (ampmdisplay == value)
+					return;
+                ampmdisplay = value;
+                this.Invalidate();
+            }
+        }
+
+		[Category("DailyView")]
+		public bool MinHalfHourApp
+        {
+            get
+            {
+                return minHalfHourApp;
+            }
+            set
+            {
+				if (minHalfHourApp == value)
+					return;
+
+                minHalfHourApp = value;
+                this.Invalidate();
+            }
+        }
+
+		[Category("DailyView")]
+        [System.ComponentModel.DefaultValue(1)]
+        public int DaysToShow
+        {
+            get
+            {
+                return daysToShow;
+            }
+            set
+            {
+				if (daysToShow == value)
+					return;
+                daysToShow = value;
+				
+				if (this.CurrentlyEditing)
+					FinishEditing(true);
+
+				this.Invalidate();
+            }
+        }
+
+		[Category("DailyView")]
+        public DateTime StartDate
+        {
+            get
+            {
+                return startDate;
+            }
+            set
+            {
+				if (startDate == value)
+					return;
+                startDate = value;
+
+				startDate = startDate.Date;
+
+				selectedAppointment = null;
+				selectedAppointmentIsNew = false;
+				selection = SelectionType.DateRange;
+
+				this.Invalidate();
+            }
+        }
+
+		[Category("DailyView")]
+        [System.ComponentModel.DefaultValue(8)]
+        public int StartHour
+        {
+            get
+            {
+                return startHour;
+            }
+            set
+            {
+                startHour = value;
+                OnStartHourChanged();
+            }
+        }
+
+		[Category("DailyView")]
+        [System.ComponentModel.DefaultValue(8)]
+        public int WorkingHourStart
+        {
+            get
+            {
+                return workingHourStart;
+            }
+            set
+            {
+                workingHourStart = value;
+                UpdateWorkingHours();
+            }
+        }
+
+		[Category("DailyView")]
+        [System.ComponentModel.DefaultValue(30)]
+        public int WorkingMinuteStart
+        {
+            get
+            {
+                return workingMinuteStart;
+            }
+            set
+            {
+                workingMinuteStart = value;
+                UpdateWorkingHours();
+            }
+        }
+
+		[Category("DailyView")]
+        [System.ComponentModel.DefaultValue(18)]
+        public int WorkingHourEnd
+        {
+            get
+            {
+                return workingHourEnd;
+            }
+            set
+            {
+                workingHourEnd = value;
+                UpdateWorkingHours();
+            }
+        }
+
+		[Category("DailyView")]
+        [System.ComponentModel.DefaultValue(30)]
+        public int WorkingMinuteEnd
+        {
+            get { return workingMinuteEnd; }
+            set
+            {
+                workingMinuteEnd = value;
+                UpdateWorkingHours();
+            }
+        }
+
+		[Category("DailyView")]
+        [DefaultValue(true)]
+        public bool AllowScroll
+        {
+            get
+            {
+                return allowScroll;
+            }
+            set
+            {
+				if (allowScroll == value)
+					return;
+
+                allowScroll = value;
+
+				this.scrollbar.Visible = this.AllowScroll;
+				this.Invalidate();
+            }
+        }
+
+		[Category("DailyView")]
+        [DefaultValue(true)]
+        public bool AllowInplaceEditing
+        {
+            get
+            {
+                return allowInplaceEditing;
+            }
+            set
+            {
+                allowInplaceEditing = value;
+            }
+        }
+
+		[Category("DailyView.Appointment")]
+		[System.ComponentModel.DefaultValue(24)]
+		public int AppointmentSlotHeight
+		{
+			get
+			{
+				return appointmentSlotHeight;
+			}
+			set
+			{
+				if (appointmentSlotHeight == value)
+					return;
+
+				appointmentSlotHeight = value;
+				AdjustScrollbar();
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		[System.ComponentModel.DefaultValue(5)]
+		public int AppointmentGripWidth
+		{
+			get
+			{
+				return appointmentGripWidth;
+			}
+			set
+			{
+				if (appointmentGripWidth == value)
+					return;
+
+				appointmentGripWidth = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		public bool DrawAllAppBorder
+		{
+			get
+			{
+				return drawAllAppBorder;
+			}
+			set
+			{
+				if (drawAllAppBorder == value)
+					return;
+				drawAllAppBorder = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		[System.ComponentModel.DefaultValue(20)]
+		public int HorizontalAppointmentHeight
+		{
+			get
+			{
+				return horizontalAppointmentHeight;
+			}
+			set
+			{
+				if (horizontalAppointmentHeight == value)
+					return;
+
+				horizontalAppointmentHeight = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		public AppHeightDrawMode AppointmentHeightMode
+		{
+			get { return appHeightMode; }
+			set { appHeightMode = value; }
+		}
+		
+		[Category("DailyView.Appointment")]
+        [DefaultValue(true)]
+        public bool AllowNew
+        {
+            get
+            {
+                return allowNew;
+            }
+            set
+            {
+                allowNew = value;
+            }
+        }
+
+		[Category("DailyView.Appointment")]
+		public bool EnableShadows
+		{
+			get
+			{
+				return enableShadows;
+			}
+			set
+			{
+				if (enableShadows == value)
+					return;
+				enableShadows = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		public bool EnableRoundedCorners
+		{
+			get
+			{
+				return enableRoundCorners;
+			}
+			set
+			{
+				if (enableRoundCorners == value)
+					return;
+				enableRoundCorners = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		public bool EnableTimeIndicator
+		{
+			get
+			{
+				return enableTimeIndicator;
+			}
+			set
+			{
+				if (value == enableTimeIndicator)
+					return;
+				enableTimeIndicator = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		public bool EnableDurationDisplay
+		{
+			get
+			{
+				return enableDurationDisplay;
+			}
+			set
+			{
+				if (value == enableDurationDisplay)
+					return;
+				enableDurationDisplay = value;
+				this.Invalidate();
+			}
+		}
+
+		[Category("DailyView.Appointment")]
+		[System.ComponentModel.DefaultValue(AppointmentSlotDuration.ThirtyMinutes)]
+		public AppointmentSlotDuration AppointmentDuration
+		{
+			get
+			{
+				return appointmentSlotDuration;
+			}
+			set
+			{
+				if (appointmentSlotDuration == value)
+					return;
+				appointmentSlotDuration = value;
+				this.Invalidate();
+			}
+		}
+		#endregion
+
+		#region " Property Overrides "
+		[System.ComponentModel.Browsable(false)]
+		public override Color BackColor
+		{
+			get
+			{
+				return base.BackColor;
+			}
+			set
+			{
+				base.BackColor = value;
+			}
+		}
+		[System.ComponentModel.Browsable(false)]
+		public override string Text
+		{
+			get
+			{
+				return base.Text;
+			}
+			set
+			{
+				base.Text = value;
+			}
+		}
+		[System.ComponentModel.Browsable(false)]
+		public override Image BackgroundImage
+		{
+			get
+			{
+				return base.BackgroundImage;
+			}
+			set
+			{
+				base.BackgroundImage = value;
+			}
+		}
+		[System.ComponentModel.Browsable(false)]
+		public override ImageLayout BackgroundImageLayout
+		{
+			get
+			{
+				return base.BackgroundImageLayout;
+			}
+			set
+			{
+				base.BackgroundImageLayout = value;
+			}
+		}
+		[System.ComponentModel.Browsable(false)]
+		public override System.Drawing.Color ForeColor
+		{
+			get
+			{
+				return base.ForeColor;
+			}
+			set
+			{
+				base.ForeColor = value;
+			}
+		}
+		[System.ComponentModel.Browsable(false)]
+		public override Font Font
+		{
+			get
+			{
+				return base.Font;
+			}
+			set
+			{
+				base.Font = value;
+			}
+		}
+		[System.ComponentModel.Browsable(false)]
+		public override RightToLeft RightToLeft
+		{
+			get
+			{
+				return base.RightToLeft;
+			}
+			set
+			{
+				base.RightToLeft = value;
+			}
+		}
+		#endregion
+
+		#region " Private Properties "
+		[System.ComponentModel.Browsable(false)]
+		public DateTime SelectionStart
+		{
+			get { return selectionStart; }
+			set { selectionStart = value; }
+		}
+
+		[System.ComponentModel.Browsable(false)]
+		public DateTime SelectionEnd
+		{
+			get { return selectionEnd; }
+			set { selectionEnd = value; }
+		}
+		
+		[System.ComponentModel.Browsable(false)]
+		public bool SelectedAppointmentIsNew
+		{
+			get
+			{
+				return selectedAppointmentIsNew;
+			}
+		}
+
+		[System.ComponentModel.Browsable(false)]
+		public int VScrollBarWith
+		{
+			get
+			{
+				if (scrollbar.Visible)
+					return scrollbar.Width;
+				else
+					return 0;
+			}
+		}
+
+		[System.ComponentModel.Browsable(false)]
+		public ITool ActiveTool
+		{
+			get { return activeTool; }
+			set { activeTool = value; }
+		}
+
+		[System.ComponentModel.Browsable(false)]
+		public bool CurrentlyEditing
+		{
+			get
+			{
+				return editbox.Visible;
+			}
+		}
+
+		[System.ComponentModel.Browsable(false)]
+		public Appointment SelectedAppointment
+		{
+			get { return selectedAppointment; }
+		}
+
+		[System.ComponentModel.Browsable(false)]
+		public SelectionType Selection
+		{
+			get
+			{
+				return selection;
+			}
+		}
+
+		[System.ComponentModel.Browsable(false)]
+		[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
+		public AbstractRenderer Renderer
+		{
+			get
+			{
+				return renderer;
+			}
+			set
+			{
+				if (renderer == value)
+					return;
+
+				renderer = value;
+				this.Font = renderer.BaseFont;
+				this.Invalidate();
+			}
+		}
+		
+		[System.ComponentModel.Browsable(false)]
+		private int HeaderHeight
+		{
+			get
+			{
+				return dayHeadersHeight + allDayEventsHeaderHeight;
+			}
+		}
+		#endregion
+
+		#region Event Handlers
+		private void editbox_KeyUp(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode == Keys.Escape)
+            {
+                e.Handled = true;
+                FinishEditing(true);
+            }
+            else if (e.KeyCode == Keys.Enter)
+            {
+                e.Handled = true;
+                FinishEditing(false);
+            }
+        }
+
+		private void selectionTool_Complete(object sender, EventArgs e)
+        {
+            if (selectedAppointment != null)
+            {
+                System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(EnterEditMode));
+            }
+        }
+
+		private void scrollbar_Scroll(object sender, ScrollEventArgs e)
+        {
+            Invalidate();
+			
+			//scroll text box too
+            if (editbox.Visible)
+                editbox.Top += e.OldValue - e.NewValue;
+        }
+
+        protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
+        {
+            base.SetBoundsCore(x, y, width, height, specified);
+            AdjustScrollbar();
+        }
+
+        protected override void OnPaintBackground(PaintEventArgs pevent)
+        {
+            // Flicker free
+        }
+
+        protected override void OnMouseDown(MouseEventArgs e)
+        {
+            // Capture focus
+            this.Focus();
+
+            if (CurrentlyEditing)
+            {
+                FinishEditing(false);
+            }
+
+            if (selectedAppointmentIsNew)
+            {
+                RaiseNewAppointment();
+            }
+
+            ITool newTool = null;
+
+            Appointment appointment = GetAppointmentAt(e.X, e.Y);
+
+            if (e.Y < HeaderHeight && e.Y > dayHeadersHeight && appointment == null)
+            {
+                if (selectedAppointment != null)
+                {
+                    selectedAppointment = null;
+                    Invalidate();
+                }
+
+                newTool = drawTool;
+                selection = SelectionType.None;
+
+                base.OnMouseDown(e);
+                return;
+            }
+
+            if (appointment == null)
+            {
+                if (selectedAppointment != null)
+                {
+                    selectedAppointment = null;
+                    Invalidate();
+                }
+
+                newTool = drawTool;
+                selection = SelectionType.DateRange;
+            }
+            else
+            {
+                newTool = selectionTool;
+                selectedAppointment = appointment;
+                selection = SelectionType.Appointment;
+
+                Invalidate();
+            }
+
+            if (activeTool != null)
+            {
+                activeTool.MouseDown(e);
+            }
+
+            if ((activeTool != newTool) && (newTool != null))
+            {
+                newTool.Reset();
+                newTool.MouseDown(e);
+            }
+
+            activeTool = newTool;
+
+            base.OnMouseDown(e);
+        }
+
+        protected override void OnMouseMove(MouseEventArgs e)
+        {
+            if (activeTool != null)
+                activeTool.MouseMove(e);
+
+            base.OnMouseMove(e);
+        }
+
+        protected override void OnMouseUp(MouseEventArgs e)
+        {
+            if (activeTool != null)
+                activeTool.MouseUp(e);
+
+            base.OnMouseUp(e);
+        }
+
+        protected override void OnMouseWheel(MouseEventArgs e)
+        {
+            base.OnMouseWheel(e);
+
+            if (e.Delta < 0)
+            {//mouse wheel scroll down
+                ScrollMe(true);
+            }
+            else
+            {//mouse wheel scroll up
+                ScrollMe(false);
+            }
+        }
+
+		protected override void OnKeyPress(KeyPressEventArgs e)
+        {
+            if ((allowNew) && char.IsLetterOrDigit(e.KeyChar))
+            {
+                if ((this.Selection == SelectionType.DateRange))
+                {
+                    if (!selectedAppointmentIsNew)
+                        EnterNewAppointmentMode(e.KeyChar);
+                }
+            }
+        }
+
+		protected virtual void ResolveAppointments(ResolveAppointmentsEventArgs args)
+		{
+			//System.Diagnostics.Debug.WriteLine("Resolve app");
+
+			if (OnResolveAppointments != null)
+				OnResolveAppointments(this, args);
+
+			this.allDayEventsHeaderHeight = 0;
+
+			// cache resolved appointments in hashtable by days.
+			cachedAppointments.Clear();
+
+			if ((selectedAppointmentIsNew) && (selectedAppointment != null))
+			{
+				if ((selectedAppointment.StartDate > args.StartDate) && (selectedAppointment.StartDate < args.EndDate))
+				{
+					args.Appointments.Add(selectedAppointment);
+				}
+			}
+
+			foreach (Appointment appointment in args.Appointments)
+			{
+				int key = -1;
+				AppointmentList list;
+
+				if (appointment.StartDate.Day == appointment.EndDate.Day && appointment.AllDayEvent == false)
+				{
+					key = appointment.StartDate.Day;
+				}
+				else
+				{
+					key = -1;
+				}
+
+				list = (AppointmentList)cachedAppointments[key];
+
+				if (list == null)
+				{
+					list = new AppointmentList();
+					cachedAppointments[key] = list;
+				}
+
+				list.Add(appointment);
+			}
+		}
+		#endregion
+
+        #region " Public Methods "
+
+        public void ScrollMe(bool down)
+        {
+			if (this.AllowScroll == false)
+				return;
+
+			int newScrollValue;
+
+            if (down)
+            {//mouse wheel scroll down
+                newScrollValue = this.scrollbar.Value + this.scrollbar.SmallChange;
+
+                if (newScrollValue < this.scrollbar.Maximum)
+                    this.scrollbar.Value = newScrollValue;
+                else
+                    this.scrollbar.Value = this.scrollbar.Maximum;
+            }
+            else
+            {//mouse wheel scroll up
+                newScrollValue = this.scrollbar.Value - this.scrollbar.SmallChange;
+
+                if (newScrollValue > this.scrollbar.Minimum)
+                    this.scrollbar.Value = newScrollValue;
+                else
+                    this.scrollbar.Value = this.scrollbar.Minimum;
+            }
+
+			this.Invalidate();
+        }
+
+        public Rectangle GetTrueRectangle()
+        {
+            Rectangle truerect;
+            truerect = this.ClientRectangle;
+            truerect.X += hourLabelWidth + hourLabelIndent;
+			truerect.Width -= VScrollBarWith + hourLabelWidth + hourLabelIndent;
+            truerect.Y += this.HeaderHeight;
+            truerect.Height -= this.HeaderHeight;
+
+            return truerect;
+        }
+
+        public Rectangle GetFullDayApptsRectangle()
+        {
+            Rectangle fulldayrect;
+            fulldayrect = this.ClientRectangle;
+            fulldayrect.Height = this.HeaderHeight - dayHeadersHeight;
+            fulldayrect.Y += dayHeadersHeight;
+			fulldayrect.Width -= (hourLabelWidth + hourLabelIndent + this.VScrollBarWith);
+            fulldayrect.X += hourLabelWidth + hourLabelIndent;
+
+            return fulldayrect;
+        }
+        
+        public void StartEditing()
+        {
+            if (!selectedAppointment.Locked && appointmentViews.ContainsKey(selectedAppointment))
+            {
+                Rectangle editBounds = appointmentViews[selectedAppointment].Rectangle;
+
+                editBounds.Inflate(-3, -3);
+                editBounds.X += appointmentGripWidth - 2;
+                editBounds.Width -= appointmentGripWidth - 5;
+
+                editbox.Bounds = editBounds;
+                editbox.Text = selectedAppointment.Subject;
+                editbox.Visible = true;
+                editbox.SelectionStart = editbox.Text.Length;
+                editbox.SelectionLength = 0;
+
+                editbox.Focus();
+            }
+        }
+
+        public void FinishEditing(bool cancel)
+        {
+            editbox.Visible = false;
+
+            if (!cancel)
+            {
+                if (selectedAppointment != null)
+                    selectedAppointment.Subject = editbox.Text;
+            }
+            else
+            {
+                if (selectedAppointmentIsNew)
+                {
+                    selectedAppointment = null;
+                    selectedAppointmentIsNew = false;
+                }
+            }
+
+            Invalidate();
+            this.Focus();
+        }
+
+        public DateTime GetTimeAt(int x, int y)
+        {
+			int dayWidth = (this.Width - (VScrollBarWith + hourLabelWidth + hourLabelIndent)) / daysToShow;
+
+            int hour = (y - this.HeaderHeight + scrollbar.Value) / appointmentSlotHeight;
+            x -= hourLabelWidth;
+
+            DateTime date = startDate;
+
+            date = date.Date;
+            date = date.AddDays(x / dayWidth);
+
+            if ((hour > 0) && (hour < 24 * 2))
+                date = date.AddMinutes((hour * 30));
+
+            return date;
+        }
+
+        public Appointment GetAppointmentAt(int x, int y)
+        {
+            foreach (AppointmentView view in appointmentViews.Values)
+                if (view.Rectangle.Contains(x, y))
+                    return view.Appointment;
+
+            foreach (AppointmentView view in longappointmentViews.Values)
+                if (view.Rectangle.Contains(x, y))
+                    return view.Appointment;
+
+            return null;
+		}
+
+		private Rectangle GetHourRangeRectangle(DateTime start, DateTime end, Rectangle baseRectangle)
+		{
+			Rectangle rect = baseRectangle;
+
+			int startY;
+			int endY;
+
+			startY = (start.Hour * appointmentSlotHeight * 2) + ((start.Minute * appointmentSlotHeight) / 30);
+			endY = (end.Hour * appointmentSlotHeight * 2) + ((end.Minute * appointmentSlotHeight) / 30);
+
+			rect.Y = startY - scrollbar.Value + this.HeaderHeight;
+
+			rect.Height = System.Math.Max(1, endY - startY);
+
+			return rect;
+		}
+		#endregion
+		
+		#region " Private Methods "
+		private void AdjustScrollbar()
+		{
+			scrollbar.Maximum = (2 * appointmentSlotHeight * 25) - this.Height + this.HeaderHeight;
+			scrollbar.Minimum = 0;
+		}
+		protected virtual void OnStartHourChanged()
+		{
+			// Fix : http://www.codeproject.com/cs/miscctrl/Calendardayview.asp?forumid=232232&select=1901930&df=100#xx1901930xx
+
+			if ((startHour * 2 * appointmentSlotHeight) > scrollbar.Maximum) //maximum is lower on larger forms
+			{
+				scrollbar.Value = scrollbar.Maximum;
+			}
+			else
+			{
+				scrollbar.Value = (startHour * 2 * appointmentSlotHeight);
+			}
+
+			Invalidate();
+		}
+		private void UpdateWorkingHours()
+		{
+			workStart = new DateTime(1, 1, 1, workingHourStart, workingMinuteStart, 0);
+			workEnd = new DateTime(1, 1, 1, workingHourEnd, workingMinuteEnd, 0);
+
+			Invalidate();
+		}
+		private void EnterNewAppointmentMode(char key)
+		{
+			Appointment appointment = new Appointment();
+			appointment.StartDate = selectionStart;
+			appointment.EndDate = selectionEnd;
+			appointment.Subject = key.ToString();
+
+			selectedAppointment = appointment;
+			selectedAppointmentIsNew = true;
+
+			activeTool = selectionTool;
+
+			Invalidate();
+
+			System.Threading.ThreadPool.QueueUserWorkItem(new System.Threading.WaitCallback(EnterEditMode));
+		}
+
+		private delegate void StartEditModeDelegate(object state);
+		private void EnterEditMode(object state)
+		{
+			if (!allowInplaceEditing)
+				return;
+
+			if (this.InvokeRequired)
+			{
+				Appointment selectedApp = selectedAppointment;
+
+				System.Threading.Thread.Sleep(200);
+
+				if (selectedApp == selectedAppointment)
+					this.Invoke(new StartEditModeDelegate(EnterEditMode), state);
+			}
+			else
+			{
+				StartEditing();
+			}
+		}
+		#endregion
+
+		#region " Method Overrides "
+		protected override void Dispose(bool disposing)
+		{
+			if (disposing)
+			{
+				editbox.Dispose();
+				scrollbar.Dispose();
+			}
+			base.Dispose(disposing);
+		}
+		#endregion
+
+		#region " Drawing Methods "
+		protected override void OnPaint(PaintEventArgs e)
+        {
+			e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
+
+			// resolve appointments on visible date range.
+			ResolveAppointmentsEventArgs args = new ResolveAppointmentsEventArgs(this.StartDate, this.StartDate.AddDays(daysToShow));
+			ResolveAppointments(args);
+
+			using (SolidBrush backBrush = new SolidBrush(renderer.BackColor))
+				e.Graphics.FillRectangle(backBrush, this.ClientRectangle);
+
+			// Visible Rectangle
+			Rectangle rectangle = new Rectangle(0, 0, this.Width - VScrollBarWith, this.Height);
+
+			DrawDays(ref e, rectangle);
+
+			DrawHourLabels(ref e, rectangle);
+
+			DrawDayHeaders(ref e, rectangle);
+        }
+
+		private void DrawDays(ref PaintEventArgs e, Rectangle rectangle)
+		{
+			Rectangle rect = rectangle;
+			rect.X += hourLabelWidth + hourLabelIndent;
+			rect.Y += this.HeaderHeight;
+			rect.Width -= (hourLabelWidth + hourLabelIndent);
+
+
+			if (e.ClipRectangle.IntersectsWith(rect) == false)
+				return;
+
+			int dayWidth = rect.Width / daysToShow;
+
+			#region " Multi Day Appointments "
+			AppointmentList longAppointments = (AppointmentList)cachedAppointments[-1];
+
+			AppointmentList drawnLongApps = new AppointmentList();
+
+			AppointmentView view;
+
+			int y = dayHeadersHeight;
+			bool intersect = false;
+
+			List<int> layers = new List<int>();
+			if (longAppointments != null)
+			{
+
+				foreach (Appointment appointment in longAppointments)
+				{
+					appointment.Layer = 0;
+
+					if (drawnLongApps.Count != 0)
+					{
+						foreach (Appointment app in drawnLongApps)
+							if (!layers.Contains(app.Layer))
+								layers.Add(app.Layer);
+
+						foreach (int lay in layers)
+						{
+							foreach (Appointment app in drawnLongApps)
+							{
+								if (app.Layer == lay)
+									if (appointment.StartDate.Date >= app.EndDate.Date || appointment.EndDate.Date <= app.StartDate.Date)
+										intersect = false;
+									else
+									{
+										intersect = true;
+										break;
+									}
+								appointment.Layer = lay;
+							}
+
+							if (!intersect)
+								break;
+						}
+
+						if (intersect)
+							appointment.Layer = layers.Count;
+					}
+
+					drawnLongApps.Add(appointment); // changed by Gimlei
+				}
+
+				foreach (Appointment app in drawnLongApps)
+					if (!layers.Contains(app.Layer))
+						layers.Add(app.Layer);
+
+				allDayEventsHeaderHeight = layers.Count * (horizontalAppointmentHeight + 5) + 5;
+
+				Rectangle backRectangle = rect;
+				backRectangle.Y = y;
+				backRectangle.Height = allDayEventsHeaderHeight;
+
+				renderer.DrawAllDayBackground(e.Graphics, backRectangle);
+
+				foreach (Appointment appointment in longAppointments)
+				{
+					Rectangle appointmenRect = rect;
+					int spanDays = appointment.EndDate.Subtract(appointment.StartDate).Days;
+
+					if (appointment.EndDate.Day != appointment.StartDate.Day && appointment.EndDate.TimeOfDay < appointment.StartDate.TimeOfDay)
+						spanDays += 1;
+
+					appointmenRect.Width = dayWidth * spanDays - 5;
+					appointmenRect.Height = horizontalAppointmentHeight;
+					appointmenRect.X += (appointment.StartDate.Subtract(startDate).Days) * dayWidth; // changed by Gimlei
+					appointmenRect.Y = y + appointment.Layer * (horizontalAppointmentHeight + 5) + 5; // changed by Gimlei
+
+					view = new AppointmentView();
+					view.Rectangle = appointmenRect;
+					view.Appointment = appointment;
+
+					longappointmentViews[appointment] = view;
+
+					Rectangle gripRect = appointmenRect;
+					gripRect.Width = appointmentGripWidth;
+
+					renderer.DrawAppointment(e.Graphics, appointmenRect, appointment, appointment == selectedAppointment, gripRect, EnableShadows, EnableRoundedCorners);
+
+				}
+			}
+			#endregion
+
+			DateTime time = startDate;
+			Rectangle rectangle2 = rect;
+			rectangle2.Width = dayWidth;
+			rectangle2.Y += allDayEventsHeaderHeight;
+			rectangle2.Height -= allDayEventsHeaderHeight;
+
+			appointmentViews.Clear();
+			layers.Clear();
+
+			for (int day = 0; day < daysToShow; day++)
+			{
+				DrawDay(ref e, rectangle2, time);
+
+				rectangle2.X += dayWidth;
+
+				time = time.AddDays(1);
+			}
+		}
+
+		private void DrawHourLabels(ref PaintEventArgs e, Rectangle rectangle)
+        {
+			Rectangle rect = rectangle;
+			rect.Y += this.HeaderHeight;
+
+            e.Graphics.SetClip(rect);
+
+			int hourlabelheight = (int)AppointmentDuration * AppointmentSlotHeight;
+
+            for (int m_Hour = 0; m_Hour < 24; m_Hour++)
+            {
+                Rectangle hourRectangle = rect;
+
+                hourRectangle.Y = rect.Y + (m_Hour * 2 * appointmentSlotHeight) - scrollbar.Value;
+                hourRectangle.X += hourLabelIndent;
+                hourRectangle.Width = hourLabelWidth;
+				hourRectangle.Height = hourlabelheight;
+
+                if (hourRectangle.Y > this.HeaderHeight / 2)
+                    renderer.DrawHourLabel(e.Graphics, hourRectangle, m_Hour, this.AmPmDisplay, EnableTimeIndicator);
+            }
+
+            e.Graphics.ResetClip();
+        }
+
+		private void DrawDayHeaders(ref PaintEventArgs e, Rectangle rectangle)
+        {
+			Rectangle rect = rectangle;
+			rect.X += hourLabelWidth + hourLabelIndent;
+			rect.Width -= (hourLabelWidth + hourLabelIndent);
+			rect.Height = dayHeadersHeight;
+
+			if (e.ClipRectangle.IntersectsWith(rect) == false)
+				return;
+
+            int dayWidth = rect.Width / daysToShow;
+
+            //one day header rectangle
+            Rectangle dayHeaderRectangle = new Rectangle(rect.Left, rect.Top, dayWidth, rect.Height);
+            DateTime headerDate = startDate;
+
+            for (int day = 0; day < daysToShow; day++)
+            {
+                renderer.DrawDayHeader(e.Graphics, dayHeaderRectangle, headerDate);
+
+                dayHeaderRectangle.X += dayWidth;
+                headerDate = headerDate.AddDays(1);
+            }
+			Rectangle scrollrect = rectangle;
+			if (this.AllowScroll == false)
+			{
+				scrollrect.X = rect.Width + hourLabelWidth + hourLabelIndent;
+				scrollrect.Width = VScrollBarWith;
+				using (SolidBrush backBrush = new SolidBrush(renderer.BackColor))
+					e.Graphics.FillRectangle(backBrush, scrollrect);
+			}
+        }
+
+        private void DrawDay(ref PaintEventArgs e, Rectangle rect, DateTime time)
+        {
+            Rectangle workingHoursRectangle = GetHourRangeRectangle(workStart, workEnd, rect);
+
+            if (workingHoursRectangle.Y < this.HeaderHeight)
+            {
+                // Fix : http://www.codeproject.com/cs/miscctrl/Calendardayview.asp?forumid=232232&select=1904152&df=100#xx1904152xx
+                
+                workingHoursRectangle.Height -= this.HeaderHeight - workingHoursRectangle.Y;
+                workingHoursRectangle.Y = this.HeaderHeight;
+            }
+
+            if (!((time.DayOfWeek == DayOfWeek.Saturday) || (time.DayOfWeek == DayOfWeek.Sunday))) //weekends off -> no working hours
+                renderer.DrawHourRange(e.Graphics, workingHoursRectangle, false, false);
+
+            if ((selection == SelectionType.DateRange) && (time.Day == selectionStart.Day))
+            {
+                Rectangle selectionRectangle = GetHourRangeRectangle(selectionStart, selectionEnd, rect);
+                if (selectionRectangle.Top + 1 > this.HeaderHeight)
+                renderer.DrawHourRange(e.Graphics, selectionRectangle, false, true);
+            }
+
+            e.Graphics.SetClip(rect);
+
+            for (int hour = 0; hour < 24 * 2; hour++)
+            {
+                int y = rect.Top + (hour * appointmentSlotHeight) - scrollbar.Value;
+
+				using (Pen pen = new Pen(((hour % 2) == 0 ? renderer.HalfHourSeperatorColor : renderer.HourSeperatorColor)))
+                    e.Graphics.DrawLine(pen, rect.Left, y, rect.Right, y);
+
+                if (y > rect.Bottom)
+                    break;
+            }
+
+            renderer.DrawDayGripper(e.Graphics, rect, dayGripWidth);
+
+            e.Graphics.ResetClip();
+
+            AppointmentList appointments = (AppointmentList)cachedAppointments[time.Day];
+
+            if (appointments != null)
+            {
+                List<string> groups = new List<string>();
+
+                foreach (Appointment app in appointments)
+                    if (!groups.Contains(app.Group))
+                        groups.Add(app.Group);
+
+                Rectangle rect2 = rect;
+                rect2.Width = rect2.Width / groups.Count;
+
+                //groups.Sort();
+
+                foreach (string group in groups)
+                {
+                    DrawAppointments(ref e, rect2, time, group);
+
+                    rect2.X += rect2.Width;
+                }
+            }
+        }
+
+        private void DrawAppointments(ref PaintEventArgs e, Rectangle rect, DateTime time, string group)
+        {
+            DateTime timeStart = time.Date;
+            DateTime timeEnd = timeStart.AddHours(24);
+            timeEnd = timeEnd.AddSeconds(-1);
+
+            AppointmentList appointments = (AppointmentList)cachedAppointments[time.Day];
+
+            if (appointments != null)
+            {
+                HalfHourLayout[] layout = GetMaxParalelAppointments(appointments);
+                
+                List<Appointment> drawnItems = new List<Appointment>();
+
+                for (int halfHour = 0; halfHour < 24 * 2; halfHour++)
+                {
+                    HalfHourLayout hourLayout = layout[halfHour];
+
+                    if ((hourLayout != null) && (hourLayout.Count > 0))
+                    {
+                        for (int appIndex = 0; appIndex < hourLayout.Count; appIndex++)
+                        {
+                            Appointment appointment = hourLayout.Appointments[appIndex];
+
+                            if (appointment.Group != group)
+                                continue;
+
+                            if (drawnItems.IndexOf(appointment) < 0)
+                            {
+                                Rectangle appRect = rect;
+                                int appointmentWidth;
+                                AppointmentView view;
+
+                                appointmentWidth = rect.Width / appointment.conflictCount;
+
+								int lastX = 0;
+
+                                foreach (Appointment app in hourLayout.Appointments)
+                                {
+                                    if ((app != null) && (app.Group == appointment.Group) && (appointmentViews.ContainsKey(app)))
+                                    {
+                                        view = appointmentViews[app];
+
+                                        if (lastX < view.Rectangle.X)
+                                            lastX = view.Rectangle.X;
+                                    }
+                                }
+
+                                if ((lastX + (appointmentWidth * 2)) > (rect.X + rect.Width))
+                                    lastX = 0;
+
+                                appRect.Width = appointmentWidth - 5;
+
+                                if (lastX > 0)
+                                    appRect.X = lastX + appointmentWidth;
+
+                                DateTime appstart = appointment.StartDate;
+                                DateTime append = appointment.EndDate;
+
+                                // Draw the appts boxes depending on the height display mode                           
+                                // If small appts are to be drawn in half-hour blocks
+                                if (this.AppointmentHeightMode == AppHeightDrawMode.FullHalfHourBlocksShort && appointment.EndDate.Subtract(appointment.StartDate).TotalMinutes < 30)
+                                {
+                                    // Round the start/end time to the last/next halfhour
+                                    appstart = appointment.StartDate.AddMinutes(-appointment.StartDate.Minute);
+                                    append = appointment.EndDate.AddMinutes(30 - appointment.EndDate.Minute);
+                                    
+                                    // Make sure we've rounded it to the correct halfhour :)
+                                    if (appointment.StartDate.Minute >= 30)
+                                        appstart = appstart.AddMinutes(30);
+                                    if (appointment.EndDate.Minute > 30)
+                                        append = append.AddMinutes(30);
+                                }
+
+                                // This is basically the same as previous mode, but for all appts
+                                else if (this.AppointmentHeightMode == AppHeightDrawMode.FullHalfHourBlocksAll)
+                                {
+                                    appstart = appointment.StartDate.AddMinutes(-appointment.StartDate.Minute);
+                                    if (appointment.EndDate.Minute != 0 && appointment.EndDate.Minute != 30)
+                                        append = appointment.EndDate.AddMinutes(30 - appointment.EndDate.Minute);
+                                    else
+                                        append = appointment.EndDate;
+
+                                    if (appointment.StartDate.Minute >= 30)
+                                        appstart = appstart.AddMinutes(30);
+                                    if (appointment.EndDate.Minute > 30)
+                                        append = append.AddMinutes(30);
+                                }
+
+                                // Based on previous code
+                                else if (this.AppointmentHeightMode == AppHeightDrawMode.EndHalfHourBlocksShort && appointment.EndDate.Subtract(appointment.StartDate).TotalMinutes < 30)
+                                {
+                                    // Round the end time to the next halfhour
+                                    append = appointment.EndDate.AddMinutes(30 - appointment.EndDate.Minute);
+
+                                    // Make sure we've rounded it to the correct halfhour :)
+                                    if (appointment.EndDate.Minute > 30)
+                                        append = append.AddMinutes(30);
+                                }
+
+                                else if (this.AppointmentHeightMode == AppHeightDrawMode.EndHalfHourBlocksAll)
+                                {
+                                    // Round the end time to the next halfhour
+                                    if (appointment.EndDate.Minute != 0 && appointment.EndDate.Minute != 30)
+                                        append = appointment.EndDate.AddMinutes(30 - appointment.EndDate.Minute);
+                                    else
+                                        append = appointment.EndDate;
+                                    // Make sure we've rounded it to the correct halfhour :)
+                                    if (appointment.EndDate.Minute > 30)
+                                        append = append.AddMinutes(30);
+                                }
+
+                                appRect = GetHourRangeRectangle(appstart, append, appRect);
+
+                                view = new AppointmentView();
+                                view.Rectangle = appRect;
+                                view.Appointment = appointment;
+
+                                appointmentViews[appointment] = view;
+
+                                e.Graphics.SetClip(rect);
+
+                                if (this.DrawAllAppBorder)
+                                    appointment.DrawBorder = true;
+
+                                // Procedure for gripper rectangle is always the same
+								Rectangle gripRect = appRect;
+                                gripRect.Width = appointmentGripWidth;
+                                
+                                renderer.DrawAppointment(e.Graphics, appRect, appointment, appointment == selectedAppointment, gripRect, this.EnableShadows, this.enableRoundCorners);
+
+                                e.Graphics.ResetClip();
+
+                                drawnItems.Add(appointment);
+                            }
+                        }
+                    }
+                }
+            }
+        }
+
+        private static HalfHourLayout[] GetMaxParalelAppointments(List<Appointment> appointments)
+        {
+            HalfHourLayout[] appLayouts = new HalfHourLayout[24 * 2];
+
+            foreach (Appointment appointment in appointments)
+            {
+                appointment.conflictCount = 1;
+            }
+
+            foreach (Appointment appointment in appointments)
+            {
+                int firstHalfHour = appointment.StartDate.Hour * 2 + (appointment.StartDate.Minute / 30);
+                int lastHalfHour = appointment.EndDate.Hour * 2 + (appointment.EndDate.Minute / 30);
+
+                // Added to allow small parts been displayed
+                if (lastHalfHour == firstHalfHour)
+                {
+                    if (lastHalfHour < 24 * 2)
+                        lastHalfHour++;
+                    else
+                        firstHalfHour--;
+                }
+
+                for (int halfHour = firstHalfHour; halfHour < lastHalfHour; halfHour++)
+                {
+                    HalfHourLayout layout = appLayouts[halfHour];
+
+                    if (layout == null)
+                    {
+                        layout = new HalfHourLayout();
+                        layout.Appointments = new Appointment[20];
+                        appLayouts[halfHour] = layout;
+                    }
+
+                    layout.Appointments[layout.Count] = appointment;
+
+                    layout.Count++;
+
+                    List<string> groups = new List<string>();
+
+                    foreach (Appointment app2 in layout.Appointments)
+                    {
+                        if ((app2 != null) && (!groups.Contains(app2.Group)))
+                            groups.Add(app2.Group);
+                    }
+
+                    layout.Groups = groups;
+
+                    // update conflicts
+                    foreach (Appointment app2 in layout.Appointments)
+                    {
+                        if ((app2 != null) && (app2.Group == appointment.Group))
+                            if (app2.conflictCount < layout.Count)
+                                app2.conflictCount = layout.Count - (layout.Groups.Count - 1);
+                    }
+                }
+            }
+
+            return appLayouts;
+        }
+        #endregion
+
+        #region " Internal Utility Classes "
+
+        internal class HalfHourLayout
+        {
+            public int Count;
+            public List<string> Groups;
+            public Appointment[] Appointments;
+        }
+
+        internal class AppointmentView
+        {
+            public Appointment Appointment;
+            public Rectangle Rectangle;
+        }
+
+        internal class AppointmentList : List<Appointment>
+        {
+        }
+
+        #endregion
+
+        #region " Events "
+        public event EventHandler<EventArgs> OnSelectionChanged;
+		public event EventHandler<ResolveAppointmentsEventArgs> OnResolveAppointments;
+		public event EventHandler<NewAppointmentEventArgs> OnNewAppointment;
+        public event EventHandler<AppointmentEventArgs> OnAppointmentMove;
+
+		internal void RaiseNewAppointment()
+		{
+			NewAppointmentEventArgs args = new NewAppointmentEventArgs(selectedAppointment.Subject, selectedAppointment.StartDate, selectedAppointment.EndDate);
+
+			if (OnNewAppointment != null)
+			{
+				OnNewAppointment(this, args);
+			}
+
+			selectedAppointment = null;
+			selectedAppointmentIsNew = false;
+
+			Invalidate();
+		}
+
+		internal void RaiseSelectionChanged(EventArgs e)
+		{
+			if (OnSelectionChanged != null)
+				OnSelectionChanged(this, e);
+		}
+
+		internal void RaiseAppointmentMove(AppointmentEventArgs e)
+		{
+			if (OnAppointmentMove != null)
+				OnAppointmentMove(this, e);
+		}
+        #endregion
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLab.Calendar-3.3.csproj
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLab.Calendar-3.3.csproj	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLab.Calendar-3.3.csproj	(revision 5457)
@@ -0,0 +1,194 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.30729</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{D17A4D6A-4CAA-4470-8A19-F42463C021FD}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>HeuristicLab.Calendar</RootNamespace>
+    <AssemblyName>HeuristicLab.Calendar-3.3</AssemblyName>
+    <SccProjectName>
+    </SccProjectName>
+    <SccLocalPath>
+    </SccLocalPath>
+    <SccAuxPath>
+    </SccAuxPath>
+    <SccProvider>
+    </SccProvider>
+    <FileUpgradeFlags>
+    </FileUpgradeFlags>
+    <OldToolsVersion>3.5</OldToolsVersion>
+    <UpgradeBackupLocation>
+    </UpgradeBackupLocation>
+    <IsWebBootstrapper>false</IsWebBootstrapper>
+    <SignAssembly>true</SignAssembly>
+    <AssemblyOriginatorKeyFile>HeuristicLab.snk</AssemblyOriginatorKeyFile>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+    <PublishUrl>publish\</PublishUrl>
+    <Install>true</Install>
+    <InstallFrom>Disk</InstallFrom>
+    <UpdateEnabled>false</UpdateEnabled>
+    <UpdateMode>Foreground</UpdateMode>
+    <UpdateInterval>7</UpdateInterval>
+    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+    <UpdatePeriodically>false</UpdatePeriodically>
+    <UpdateRequired>false</UpdateRequired>
+    <MapFileExtensions>true</MapFileExtensions>
+    <ApplicationRevision>0</ApplicationRevision>
+    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
+    <UseApplicationTrust>false</UseApplicationTrust>
+    <BootstrapperEnabled>true</BootstrapperEnabled>
+    <TargetFrameworkProfile />
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+    <PlatformTarget>AnyCPU</PlatformTarget>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+    <PlatformTarget>x86</PlatformTarget>
+    <OutputPath>bin\Debug\</OutputPath>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+    <PlatformTarget>x86</PlatformTarget>
+    <OutputPath>bin\x86\Release\</OutputPath>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+    <PlatformTarget>x64</PlatformTarget>
+    <OutputPath>bin\x64\Debug\</OutputPath>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+    <PlatformTarget>x64</PlatformTarget>
+    <OutputPath>bin\x64\Release\</OutputPath>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="HeuristicLab.PluginInfrastructure-3.3">
+      <HintPath>C:\Program Files\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Appointment\AppointmentSlot.cs" />
+    <Compile Include="Appointment\AppointmentSlotDuration.cs" />
+    <Compile Include="Appointment\iAppointment.cs" />
+    <None Include="HeuristicLabCalendarPlugin.cs.frame" />
+    <Compile Include="HeuristicLabCalendarPlugin.cs" />
+    <Compile Include="Properties\CalendarResources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DesignTime>True</DesignTime>
+      <DependentUpon>CalendarResources.resx</DependentUpon>
+    </Compile>
+    <Compile Include="CalendarStorage\iCalendarStorage.cs" />
+    <Compile Include="Renderer\AbstractRenderer.cs" />
+    <Compile Include="Appointment\Appointment.cs">
+    </Compile>
+    <Compile Include="Appointment\AppointmentEventArgs.cs" />
+    <Compile Include="Appointment\AppointmentHieghtDrawMode.cs" />
+    <Compile Include="DayView.cs">
+      <SubType>Component</SubType>
+    </Compile>
+    <Compile Include="ViewTools\DrawTool.cs" />
+    <Compile Include="ViewTools\ITool.cs" />
+    <Compile Include="Appointment\NewAppointmentEvent.cs" />
+    <Compile Include="Renderer\Office12Renderer.cs" />
+    <Compile Include="Renderer\Office11Renderer.cs">
+      <SubType>Code</SubType>
+    </Compile>
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="Appointment\ResolveAppointmentsEvent.cs" />
+    <Compile Include="ViewTools\SelectionType.cs" />
+    <Compile Include="ViewTools\SelectionTool.cs" />
+    <Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
+  </ItemGroup>
+  <ItemGroup>
+    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
+      <Install>true</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
+      <Visible>False</Visible>
+      <ProductName>.NET Framework 3.5 SP1</ProductName>
+      <Install>false</Install>
+    </BootstrapperPackage>
+  </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Properties\CalendarResources.resx">
+      <Generator>PublicResXFileCodeGenerator</Generator>
+      <LastGenOutput>CalendarResources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Resources\LockedAppointment.png" />
+    <Content Include="Resources\recurring.png" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="HeuristicLab.snk" />
+    <None Include="Properties\AssemblyInfo.cs.frame" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <PropertyGroup>
+    <PreBuildEvent>set Path=%25Path%25;$(ProjectDir);$(SolutionDir)
+set ProjectDir=$(ProjectDir)
+set SolutionDir=$(SolutionDir)
+set Outdir=$(Outdir)
+
+call PreBuildEvent.cmd</PreBuildEvent>
+  </PropertyGroup>
+  <PropertyGroup>
+    <PostBuildEvent>set ProjectName=$(ProjectName)
+set TargetPath=$(TargetPath)
+call $(SolutionDir)/CopyAssembly.cmd
+
+set target=C:\Program Files\HeuristicLab 3.3
+echo Copying Calendar License Txt
+copy  $(ProjectDir)"DayView License.txt" "%25target%25"
+
+</PostBuildEvent>
+  </PropertyGroup>
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLabCalendarPlugin.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLabCalendarPlugin.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLabCalendarPlugin.cs	(revision 5457)
@@ -0,0 +1,31 @@
+#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System;
+using HeuristicLab.PluginInfrastructure;
+
+namespace HeuristicLab.Calendar {
+  [Plugin("HeuristicLab.Calendar", "3.3.3.0")]
+  [PluginFile("HeuristicLab.Calendar-3.3.dll", PluginFileType.Assembly)]
+  [PluginFile("DayView License.txt", PluginFileType.License)]
+  public class HeuristicLabCalendarPlugin : PluginBase {
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLabCalendarPlugin.cs.frame
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLabCalendarPlugin.cs.frame	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/HeuristicLabCalendarPlugin.cs.frame	(revision 5457)
@@ -0,0 +1,31 @@
+#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System;
+using HeuristicLab.PluginInfrastructure;
+
+namespace HeuristicLab.Calendar {
+  [Plugin("HeuristicLab.Calendar", "3.3.3.$WCREV$")]
+  [PluginFile("HeuristicLab.Calendar-3.3.dll", PluginFileType.Assembly)]
+  [PluginFile("DayView License.txt", PluginFileType.License)]
+  public class HeuristicLabCalendarPlugin : PluginBase {
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs	(revision 5457)
@@ -0,0 +1,58 @@
+#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using HeuristicLab.PluginInfrastructure;
+using System.Security;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("HeuristicLab.Calendar")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("HeuristicLab")]
+[assembly: AssemblyCopyright("Copyright © Moreum 2005")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("B6BA196A-F2E3-4de2-AE8A-02D4995F8B57")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("3.3.0.0")]
+[assembly: AssemblyFileVersion("3.3.0.0")]
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs.frame
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs.frame	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/AssemblyInfo.cs.frame	(revision 5457)
@@ -0,0 +1,58 @@
+#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using HeuristicLab.PluginInfrastructure;
+using System.Security;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("HeuristicLab.Calendar")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("HeuristicLab")]
+[assembly: AssemblyCopyright("Copyright © Moreum 2005")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("B6BA196A-F2E3-4de2-AE8A-02D4995F8B57")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers 
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("3.3.0.0")]
+[assembly: AssemblyFileVersion("3.3.0.$WCREV$")]
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/CalendarResources.Designer.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/CalendarResources.Designer.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/CalendarResources.Designer.cs	(revision 5457)
@@ -0,0 +1,77 @@
+﻿//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:4.0.30319.1
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace HeuristicLab.Calendar.Properties {
+    using System;
+    
+    
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // This class was auto-generated by the StronglyTypedResourceBuilder
+    // class via a tool like ResGen or Visual Studio.
+    // To add or remove a member, edit your .ResX file then rerun ResGen
+    // with the /str option, or rebuild your VS project.
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    public class CalendarResources {
+        
+        private static global::System.Resources.ResourceManager resourceMan;
+        
+        private static global::System.Globalization.CultureInfo resourceCulture;
+        
+        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+        internal CalendarResources() {
+        }
+        
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        public static global::System.Resources.ResourceManager ResourceManager {
+            get {
+                if (object.ReferenceEquals(resourceMan, null)) {
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HeuristicLab.Calendar.Properties.CalendarResources", typeof(CalendarResources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+        
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        public static global::System.Globalization.CultureInfo Culture {
+            get {
+                return resourceCulture;
+            }
+            set {
+                resourceCulture = value;
+            }
+        }
+        
+        public static System.Drawing.Bitmap LockedAppointment {
+            get {
+                object obj = ResourceManager.GetObject("LockedAppointment", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+        
+        public static System.Drawing.Bitmap recurring {
+            get {
+                object obj = ResourceManager.GetObject("recurring", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/CalendarResources.resx
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/CalendarResources.resx	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Properties/CalendarResources.resx	(revision 5457)
@@ -0,0 +1,127 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+  <data name="LockedAppointment" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resources\lockedappointment.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+  <data name="recurring" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\resources\recurring.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
+</root>
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/AbstractRenderer.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/AbstractRenderer.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/AbstractRenderer.cs	(revision 5457)
@@ -0,0 +1,227 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing.Drawing2D;
+using System.Drawing;
+
+namespace HeuristicLab.Calendar
+{
+    public abstract class AbstractRenderer : IDisposable
+    {
+        ~AbstractRenderer()
+        {
+            Dispose(false);
+        }
+
+        public void Dispose()
+        {
+            Dispose(true);
+            GC.SuppressFinalize(this);
+        }
+
+        protected virtual void Dispose(bool mainThread)
+        {
+            if (hourFont != null)
+                hourFont.Dispose();
+
+            if (minuteFont != null)
+                minuteFont.Dispose();
+        }
+
+        public virtual Color AllDayEventsBackColor
+        {
+            get
+            {
+                return InterpolateColors(this.BackColor, Color.Black, 0.5f);
+            }
+        }
+
+        public virtual Font BaseFont
+        {
+            get
+            {
+                return Control.DefaultFont;
+            }
+        }
+
+        public virtual Color HourSeperatorColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(234, 208, 152);
+            }
+        }
+
+        public virtual Color HalfHourSeperatorColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(243, 228, 177);
+            }
+        }
+
+        public virtual Color HourColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(255, 244, 188);
+            }
+        }
+
+        public virtual Color WorkingHourColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(255, 255, 213);
+            }
+        }
+
+        public virtual Color BackColor
+        {
+            get
+            {
+                return SystemColors.Control;
+            }
+        }
+
+        public virtual Color SelectionColor
+        {
+            get
+            {
+                return SystemColors.Highlight;
+            }
+        }
+
+        private Font hourFont;
+
+        public virtual Font HourFont
+        {
+            get
+            {
+                if (hourFont == null)
+                {
+                    hourFont = new Font(BaseFont.FontFamily, 14, FontStyle.Regular);
+                }
+
+                return hourFont;
+            }
+        }
+
+        private Font minuteFont;
+
+        public virtual Font MinuteFont
+        {
+            get
+            {
+                if (minuteFont == null)
+                {
+                    minuteFont = new Font(BaseFont.FontFamily, 8, FontStyle.Regular);
+                }
+
+                return minuteFont;
+            }
+        }
+
+        public abstract void DrawHourLabel(Graphics g, Rectangle rect, int hour, bool ampm);
+
+		public abstract void DrawHourLabel(Graphics g, Rectangle rect, int hour, bool ampm, bool timeindicator);
+
+        public abstract void DrawDayHeader(Graphics g, Rectangle rect, DateTime date);
+
+        public abstract void DrawDayBackground(Graphics g, Rectangle rect);
+
+        public virtual void DrawHourRange(Graphics g, Rectangle rect, bool drawBorder, bool hilight)
+        {
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+            using (SolidBrush brush = new SolidBrush(hilight ? this.SelectionColor : this.WorkingHourColor))
+            {
+                g.FillRectangle(brush, rect);
+            }
+
+            if (drawBorder)
+                g.DrawRectangle(SystemPens.WindowFrame, rect);
+        }
+
+        public virtual void DrawDayGripper(Graphics g, Rectangle rect, int gripWidth)
+        {
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+            using (Brush m_Brush = new SolidBrush(Color.White))
+                g.FillRectangle(m_Brush, rect.Left, rect.Top - 1, gripWidth, rect.Height);
+
+            using (Pen m_Pen = new Pen(Color.Black))
+                g.DrawRectangle(m_Pen, rect.Left, rect.Top - 1, gripWidth, rect.Height);
+        }
+
+        public abstract void DrawAppointment(Graphics g, Rectangle rect, Appointment appointment, bool isSelected, Rectangle gripRect);
+
+		public abstract void DrawAppointment(Graphics g, Rectangle rect, Appointment appointment, bool isSelected, Rectangle gripRect, bool enableShadows, bool useroundedCorners);
+
+        public void DrawAllDayBackground(Graphics g, Rectangle rect)
+        {
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+            using (Brush brush = new SolidBrush(InterpolateColors(this.BackColor, Color.Black, 0.5f)))
+                g.FillRectangle(brush, rect);
+        }
+
+        public static Color InterpolateColors(Color color1, Color color2, float percentage)
+        {
+            int num1 = ((int)color1.R);
+            int num2 = ((int)color1.G);
+            int num3 = ((int)color1.B);
+            int num4 = ((int)color2.R);
+            int num5 = ((int)color2.G);
+            int num6 = ((int)color2.B);
+            byte num7 = Convert.ToByte(((float)(((float)num1) + (((float)(num4 - num1)) * percentage))));
+            byte num8 = Convert.ToByte(((float)(((float)num2) + (((float)(num5 - num2)) * percentage))));
+            byte num9 = Convert.ToByte(((float)(((float)num3) + (((float)(num6 - num3)) * percentage))));
+            return Color.FromArgb(num7, num8, num9);
+        }
+
+		public static GraphicsPath CreateRoundRectangle(Rectangle rectangle)
+		{
+			int radius = 8;
+
+			GraphicsPath path = new GraphicsPath();
+			int l = rectangle.Left;
+			int t = rectangle.Top;
+			int w = rectangle.Width;
+			int h = rectangle.Height;
+			int d = radius << 1;
+			path.AddArc(l, t, d, d, 180, 90); // topleft
+			path.AddLine(l + radius, t, l + w - radius, t); // top
+			path.AddArc(l + w - d, t, d, d, 270, 90); // topright
+			path.AddLine(l + w, t + radius, l + w, t + h - radius); // right
+			path.AddArc(l + w - d, t + h - d, d, d, 0, 90); // bottomright
+			path.AddLine(l + w - radius, t + h, l + radius, t + h); // bottom
+			path.AddArc(l, t + h - d, d, d, 90, 90); // bottomleft
+			path.AddLine(l, t + h - radius, l, t + radius); // left
+			path.CloseFigure();
+			return path;
+		}
+
+		public static GraphicsPath CreateGripRectangle(Rectangle rectangle)
+		{
+			int radius = rectangle.Width;
+
+			GraphicsPath path = new GraphicsPath();
+			int l = rectangle.Left;
+			int t = rectangle.Top;
+			int w = rectangle.Width;
+			int h = rectangle.Height;
+			int d = radius << 1;
+			path.AddArc(l, t, d, d, 180, 90); // topleft
+			path.AddLine(l + w, t + radius, l + w, t + h - radius); // right
+			path.AddArc(l, t + h - d, d, d, 90, 90); // bottomleft
+			path.AddLine(l, t + h - radius, l, t + radius); // left
+			path.CloseFigure();
+			return path;
+		}
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/Office11Renderer.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/Office11Renderer.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/Office11Renderer.cs	(revision 5457)
@@ -0,0 +1,155 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+using System.Drawing;
+
+namespace HeuristicLab.Calendar
+{
+    public class Office11Renderer : AbstractRenderer
+    {
+        protected override void Dispose(bool mainThread)
+        {
+            base.Dispose(mainThread);
+
+            if (minuteFont != null)
+                minuteFont.Dispose();
+        }
+
+        private Font minuteFont;
+
+        public override Font MinuteFont
+        {
+            get
+            {
+                if (minuteFont == null)
+                    minuteFont = new Font(BaseFont, FontStyle.Italic);
+
+                return minuteFont;
+            }
+        }
+
+		public override void DrawHourLabel(System.Drawing.Graphics g, System.Drawing.Rectangle rect, int hour, bool ampm)
+		{
+			DrawHourLabel(g, rect, hour, ampm, false);
+		}
+
+		public override void DrawHourLabel(Graphics g, Rectangle rect, int hour, bool ampm, bool timeindicator)
+        {
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+            Color m_Color = ControlPaint.LightLight(SystemColors.WindowFrame);
+            m_Color = ControlPaint.Light(m_Color);
+
+            using (Pen m_Pen = new Pen(m_Color))
+                g.DrawLine(m_Pen, rect.Left, rect.Y, rect.Width, rect.Y);
+
+            g.DrawString(hour.ToString("##00", System.Globalization.CultureInfo.InvariantCulture), HourFont, SystemBrushes.ControlText, rect);
+
+            rect.X += 27;
+
+            g.DrawString("00", MinuteFont, SystemBrushes.ControlText, rect);
+        }
+
+        public override void DrawDayHeader(Graphics g, Rectangle rect, DateTime date)
+        {
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+            using (StringFormat format = new StringFormat())
+            {
+                format.Alignment = StringAlignment.Center;
+                format.FormatFlags = StringFormatFlags.NoWrap;
+                format.LineAlignment = StringAlignment.Center;
+
+                ControlPaint.DrawButton(g, rect, ButtonState.Inactive);
+                ControlPaint.DrawBorder3D(g, rect, Border3DStyle.Etched);
+
+                g.DrawString(
+                    System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(date.DayOfWeek),
+                    BaseFont,
+                    SystemBrushes.WindowText,
+                    rect,
+                    format
+                    );
+            }
+        }
+
+        public override void DrawDayBackground(Graphics g, Rectangle rect)
+        {
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+            using (Brush m_Brush = new SolidBrush(this.HourColor))
+                g.FillRectangle(m_Brush, rect);
+        }
+
+        public override void DrawAppointment(Graphics g, Rectangle rect, Appointment appointment, bool isSelected, Rectangle gripRect)
+        {
+			DrawAppointment(g, rect, appointment, isSelected, gripRect, true, false);
+        }
+
+		public override void DrawAppointment(Graphics g, Rectangle rect, Appointment appointment, bool isSelected, Rectangle gripRect, bool enableShadows, bool useroundedCorners)
+		{
+			if (appointment == null)
+				throw new ArgumentNullException("appointment");
+
+			if (g == null)
+				throw new ArgumentNullException("g");
+
+			if (rect.Width != 0 && rect.Height != 0)
+				using (StringFormat format = new StringFormat())
+				{
+					format.Alignment = StringAlignment.Near;
+					format.LineAlignment = StringAlignment.Near;
+
+					if ((appointment.Locked) && isSelected)
+					{
+						// Draw back
+						using (Brush m_Brush = new System.Drawing.Drawing2D.HatchBrush(System.Drawing.Drawing2D.HatchStyle.Wave, Color.LightGray, appointment.Color))
+							g.FillRectangle(m_Brush, rect);
+					}
+					else
+					{
+						// Draw back
+						using (SolidBrush m_Brush = new SolidBrush(appointment.Color))
+							g.FillRectangle(m_Brush, rect);
+					}
+
+					if (isSelected)
+					{
+						using (Pen m_Pen = new Pen(appointment.BorderColor, 4))
+							g.DrawRectangle(m_Pen, rect);
+
+						Rectangle m_BorderRectangle = rect;
+
+						m_BorderRectangle.Inflate(2, 2);
+
+						using (Pen m_Pen = new Pen(SystemColors.WindowFrame, 1))
+							g.DrawRectangle(m_Pen, m_BorderRectangle);
+
+						m_BorderRectangle.Inflate(-4, -4);
+
+						using (Pen m_Pen = new Pen(SystemColors.WindowFrame, 1))
+							g.DrawRectangle(m_Pen, m_BorderRectangle);
+					}
+					else
+					{
+						// Draw gripper
+						gripRect.Width += 1;
+
+						using (SolidBrush m_Brush = new SolidBrush(appointment.BorderColor))
+							g.FillRectangle(m_Brush, gripRect);
+
+						using (Pen m_Pen = new Pen(SystemColors.WindowFrame, 1))
+							g.DrawRectangle(m_Pen, rect);
+					}
+
+					rect.X += gripRect.Width;
+					g.DrawString(appointment.Subject, this.BaseFont, SystemBrushes.WindowText, rect, format);
+				}
+		}
+    }
+
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/Office12Renderer.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/Office12Renderer.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/Renderer/Office12Renderer.cs	(revision 5457)
@@ -0,0 +1,411 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Drawing;
+using System.Drawing.Drawing2D;
+using System.Drawing.Text;
+
+namespace HeuristicLab.Calendar
+{
+    public class Office12Renderer : AbstractRenderer
+    {
+        protected override void Dispose(bool mainThread)
+        {
+            base.Dispose(mainThread);
+
+            if (baseFont != null)
+                baseFont.Dispose();
+        }
+
+        Font baseFont;
+
+        public override Font BaseFont
+        {
+            get
+            {
+                if (baseFont == null)
+                {
+                    baseFont = new Font("Segoe UI", 8, FontStyle.Regular);
+                }
+
+                return baseFont;
+            }
+        }
+
+        public override Color HourColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(230, 237, 247);
+            }
+        }
+
+        public override Color HalfHourSeperatorColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(165, 191, 225);
+            }
+        }
+
+        public override Color HourSeperatorColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(213, 215, 241);
+            }
+        }
+
+        public override Color WorkingHourColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(255, 255, 255);
+            }
+        }
+
+        public override System.Drawing.Color BackColor
+        {
+            get
+            {
+                return Color.FromArgb(213, 228, 242);
+            }
+        }
+
+        public override Color SelectionColor
+        {
+            get
+            {
+                return System.Drawing.Color.FromArgb(41, 76, 122);
+            }
+        }
+
+		public override void DrawHourLabel(System.Drawing.Graphics g, System.Drawing.Rectangle rect, int hour, bool ampm)
+		{
+			DrawHourLabel(g, rect, hour, ampm, false);
+		}
+
+		public override void DrawHourLabel(Graphics g, Rectangle rect, int hour, bool ampm, bool timeindicator)
+		{
+			if (g == null)
+				throw new ArgumentNullException("g");
+
+			int orgHour = hour;
+			Color color = Color.FromArgb(101, 147, 207);
+
+			//Draw Divider Line
+			using (Pen pen = new Pen(color))
+				g.DrawLine(pen, rect.Left, rect.Y, rect.Width, rect.Y);
+
+			string ampmtime;
+			if (ampm)
+			{
+				ampmtime = (hour < 12) ? "AM" : "PM";
+
+				if (hour != 12)
+					hour = hour % 12;
+			}
+			else
+				ampmtime = "00";
+			
+			using (SolidBrush brush = new SolidBrush(color))
+			{
+				g.DrawString(hour.ToString("##00", System.Globalization.CultureInfo.InvariantCulture), HourFont, brush, rect);
+				rect.X += 27;
+				g.DrawString(ampmtime, MinuteFont, brush, rect);
+			}
+
+			DateTime dtnow = DateTime.Now;
+			if (timeindicator && orgHour == dtnow.Hour)
+			{
+				int tioffset = 5;
+				Rectangle rectIndicator = rect;
+				rectIndicator.Width = rect.Width - tioffset;
+				rectIndicator.Height = tioffset;
+				rectIndicator.Y = (rect.Height / 60) * dtnow.Minute;
+				rectIndicator.X = tioffset;
+				using (LinearGradientBrush lgb = new LinearGradientBrush(rectIndicator, Color.FromArgb(247, 207, 114), Color.FromArgb(251, 230, 148), LinearGradientMode.Vertical))
+					g.FillRectangle(lgb, rectIndicator);
+			}
+		}
+
+        public override void DrawDayHeader(System.Drawing.Graphics g, System.Drawing.Rectangle rect, DateTime date)
+        {
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+            using (StringFormat format = new StringFormat())
+            {
+                format.Alignment = StringAlignment.Center;
+                format.FormatFlags = StringFormatFlags.NoWrap;
+                format.LineAlignment = StringAlignment.Center;
+
+                using (StringFormat formatdd = new StringFormat())
+                {
+                    formatdd.Alignment = StringAlignment.Near;
+                    formatdd.FormatFlags = StringFormatFlags.NoWrap;
+                    formatdd.LineAlignment = StringAlignment.Center;
+
+                    using (SolidBrush brush = new SolidBrush(this.BackColor))
+                        g.FillRectangle(brush, rect);
+
+                    using (Pen aPen = new Pen(Color.FromArgb(205, 219, 238)))
+                        g.DrawLine(aPen, rect.Left, rect.Top + (int)rect.Height / 2, rect.Right, rect.Top + (int)rect.Height / 2);
+
+                    using (Pen aPen = new Pen(Color.FromArgb(141, 174, 217)))
+                        g.DrawRectangle(aPen, rect);
+
+                    Rectangle topPart = new Rectangle(rect.Left + 1, rect.Top + 1, rect.Width - 2, (int)(rect.Height / 2) - 1);
+                    Rectangle lowPart = new Rectangle(rect.Left + 1, rect.Top + (int)(rect.Height / 2) + 1, rect.Width - 1, (int)(rect.Height / 2) - 1);
+
+                    using (LinearGradientBrush aGB = new LinearGradientBrush(topPart, Color.FromArgb(228, 236, 246), Color.FromArgb(214, 226, 241), LinearGradientMode.Vertical))
+                        g.FillRectangle(aGB, topPart);
+
+                    using (LinearGradientBrush aGB = new LinearGradientBrush(lowPart, Color.FromArgb(194, 212, 235), Color.FromArgb(208, 222, 239), LinearGradientMode.Vertical))
+                        g.FillRectangle(aGB, lowPart);
+
+                    if (date.Date.Equals(DateTime.Now.Date))
+                    {
+                        topPart.Inflate((int)(-topPart.Width / 4 + 1), 1); //top left orange area
+                        topPart.Offset(rect.Left - topPart.Left + 1, 1);
+                        topPart.Inflate(1, 0);
+                        using (LinearGradientBrush aGB = new LinearGradientBrush(topPart, Color.FromArgb(247, 207, 114), Color.FromArgb(251, 230, 148), LinearGradientMode.Horizontal))
+                        {
+                            topPart.Inflate(-1, 0);
+                            g.FillRectangle(aGB, topPart);
+                        }
+
+                        topPart.Offset(rect.Right - topPart.Right, 0);        //top right orange
+                        topPart.Inflate(1, 0);
+                        using (LinearGradientBrush aGB = new LinearGradientBrush(topPart, Color.FromArgb(251, 230, 148), Color.FromArgb(247, 207, 114), LinearGradientMode.Horizontal))
+                        {
+                            topPart.Inflate(-1, 0);
+                            g.FillRectangle(aGB, topPart);
+                        }
+
+                        using (Pen aPen = new Pen(Color.FromArgb(128, 240, 154, 30))) //center line
+                            g.DrawLine(aPen, rect.Left, topPart.Bottom - 1, rect.Right, topPart.Bottom - 1);
+
+                        topPart.Inflate(0, -1);
+                        topPart.Offset(0, topPart.Height + 1); //lower right
+                        using (LinearGradientBrush aGB = new LinearGradientBrush(topPart, Color.FromArgb(240, 157, 33), Color.FromArgb(250, 226, 142), LinearGradientMode.BackwardDiagonal))
+                            g.FillRectangle(aGB, topPart);
+
+                        topPart.Offset(rect.Left - topPart.Left + 1, 0); //lower left
+                        using (LinearGradientBrush aGB = new LinearGradientBrush(topPart, Color.FromArgb(240, 157, 33), Color.FromArgb(250, 226, 142), LinearGradientMode.ForwardDiagonal))
+                            g.FillRectangle(aGB, topPart);
+                        using (Pen aPen = new Pen(Color.FromArgb(238, 147, 17)))
+                            g.DrawRectangle(aPen, rect);
+                    }
+
+                    g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
+
+                    //get short dayabbr. if narrow dayrect
+                    string sTodaysName = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(date.DayOfWeek);
+                    if (rect.Width < 105)
+                        sTodaysName = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetAbbreviatedDayName(date.DayOfWeek);
+
+                    rect.Offset(2, 1);
+
+                    using (Font fntDay = new Font("Segoe UI", 8))
+                        g.DrawString(sTodaysName, fntDay, SystemBrushes.WindowText, rect, format);
+
+                    rect.Offset(-2, -1);
+
+                    using (Font fntDayDate = new Font("Segoe UI", 9, FontStyle.Bold))
+                        g.DrawString(date.ToString(" d"), fntDayDate, SystemBrushes.WindowText, rect, formatdd);
+                }
+            }
+        }
+
+        public override void DrawDayBackground(System.Drawing.Graphics g, System.Drawing.Rectangle rect)
+        {
+
+        }
+
+		public override void DrawAppointment(System.Drawing.Graphics g, System.Drawing.Rectangle rect, Appointment appointment, bool isSelected, System.Drawing.Rectangle gripRect)
+		{
+			DrawAppointment(g, rect, appointment, isSelected, gripRect, true, false);
+		}
+        
+		public override void DrawAppointment(System.Drawing.Graphics g, System.Drawing.Rectangle rect, Appointment appointment, bool isSelected, System.Drawing.Rectangle gripRect, bool enableShadows, bool useroundedCorners)
+        {
+            if (appointment == null)
+                throw new ArgumentNullException("appointment");
+
+            if (g == null)
+                throw new ArgumentNullException("g");
+
+			if (rect.Width == 0 || rect.Height == 0)
+				return;
+
+			float _ShadowDistance = 6f;
+
+			#region " Adjust Appointment Rectangle based on the Size of the Grip Rectangle "
+			rect.X += gripRect.Width;
+			rect.Width -= gripRect.Width;
+			gripRect.X += gripRect.Width;
+			#endregion
+
+			#region " Gradient Colors "
+			Color start = InterpolateColors(appointment.Color, Color.White, 0.4f);
+			Color end = InterpolateColors(appointment.Color, Color.FromArgb(191, 210, 234), 0.7f);
+			//start = Color.FromArgb(230, start);
+			//end = Color.FromArgb(180, end);
+			#endregion
+
+			GraphicsPath gp = null;
+			try
+			{
+				#region " Create Graphics Path "
+				if (useroundedCorners)
+				{
+					gp = CreateRoundRectangle(rect);
+				}
+				else
+				{
+					gp = new GraphicsPath();
+					gp.AddRectangle(rect);
+				}
+				#endregion
+
+				#region " Shadows "
+				if (enableShadows)
+				{
+					Matrix _Matrix = new Matrix();
+					_Matrix.Translate(_ShadowDistance, _ShadowDistance);
+					gp.Transform(_Matrix);
+					using (PathGradientBrush _Brush = new PathGradientBrush(gp))
+					{
+						// set the wrapmode so that the colors will layer themselves
+						// from the outer edge in
+						_Brush.WrapMode = WrapMode.Clamp;
+						
+						// Create a color blend to manage our colors and positions and
+						// since we need 3 colors set the default length to 3
+						ColorBlend _ColorBlend = new ColorBlend(3);
+
+						// here is the important part of the shadow making process, remember
+						// the clamp mode on the colorblend object layers the colors from
+						// the outside to the center so we want our transparent color first
+						// followed by the actual shadow color. Set the shadow color to a 
+						// slightly transparent DimGray, I find that it works best.
+						_ColorBlend.Colors = new Color[] { Color.Transparent, Color.FromArgb(180, Color.DimGray), Color.FromArgb(180, Color.DimGray) };
+
+						// our color blend will control the distance of each color layer
+						// we want to set our transparent color to 0 indicating that the 
+						// transparent color should be the outer most color drawn, then
+						// our Dimgray color at about 10% of the distance from the edge
+						_ColorBlend.Positions = new float[] { 0f, .1f, 1f };
+						
+						// assign the color blend to the pathgradientbrush
+						_Brush.InterpolationColors = _ColorBlend;
+						
+						// fill the shadow with our pathgradientbrush
+						g.FillPath(_Brush, gp);
+					}
+
+					// Draw shadow lines
+					//int xLeft = rect.X + 6;
+					//int xRight = rect.Right + 1;
+					//int yTop = rect.Y + 1;
+					//int yButton = rect.Bottom + 1;
+
+					//for (int i = 0; i < 5; i++)
+					//{
+					//    using (Pen shadow_Pen = new Pen(Color.FromArgb(70 - 12 * i, Color.Black)))
+					//    {
+					//        g.DrawLine(shadow_Pen, xLeft + i, yButton + i, xRight + i - 1, yButton + i); //horisontal lines
+					//        g.DrawLine(shadow_Pen, xRight + i, yTop + i, xRight + i, yButton + i); //vertical
+					//    }
+					//}
+
+					//Move the GraphicsPath Back to the original Location
+					_Matrix.Translate(_ShadowDistance * -2, _ShadowDistance * -2);
+					gp.Transform(_Matrix);
+				}
+				#endregion
+
+				#region " Draw Background "
+					using (LinearGradientBrush aGB = new LinearGradientBrush(rect, start, end, LinearGradientMode.Vertical))
+						g.FillPath(aGB, gp);
+				#endregion
+
+				#region " Selection Border "
+				if (isSelected)
+				{
+					using (Pen m_Pen = new Pen(appointment.BorderColor, 2))
+						g.DrawPath(m_Pen, gp);
+				}
+				#endregion
+
+				#region " Appointment Grip "
+				gripRect.Width += 1;
+
+				GraphicsPath grippath = null;
+				try
+				{
+					if (useroundedCorners)
+					{
+						grippath = CreateGripRectangle(gripRect);
+					}
+					else
+					{
+						grippath = new GraphicsPath();
+						grippath.AddRectangle(gripRect);
+					}
+					using (SolidBrush aGB = new SolidBrush(appointment.BorderColor))
+						g.FillPath(aGB, grippath);
+				}
+				finally
+				{
+					grippath.Dispose();
+				}
+
+				#endregion
+
+				#region " Appointment Border
+				if (appointment.DrawBorder)
+					using (Pen m_Pen = new Pen(appointment.BorderColor, 1))
+						g.DrawPath(m_Pen, gp);
+				#endregion
+
+				#region " Draw Recurring Icon "
+				if (appointment.Recurring || appointment.Locked)
+				{
+					Rectangle iconrec = rect;
+					iconrec.Width = 16;
+					iconrec.Height = 16;
+
+					iconrec.X = rect.Right - 18;
+					iconrec.Y = rect.Bottom - 18;
+					Image icon = (appointment.Recurring) ? Properties.CalendarResources.recurring : null;
+          if (icon != null) {
+            g.DrawImage(icon, iconrec);
+            icon.Dispose();
+          }
+				}
+				#endregion
+
+			}
+			finally
+			{
+				gp.Dispose();
+			}
+			
+			#region " Draw Text "
+			using (StringFormat format = new StringFormat())
+			{
+				format.Alignment = StringAlignment.Near;
+				format.LineAlignment = StringAlignment.Near;
+				// draw appointment text
+
+				rect.X += gripRect.Width;
+				g.TextRenderingHint = TextRenderingHint.ClearTypeGridFit;
+				g.DrawString(appointment.Subject, this.BaseFont, SystemBrushes.WindowText, rect, format);
+				g.TextRenderingHint = TextRenderingHint.SystemDefault;
+			}
+			#endregion
+		}
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/DrawTool.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/DrawTool.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/DrawTool.cs	(revision 5457)
@@ -0,0 +1,93 @@
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+
+namespace HeuristicLab.Calendar
+{
+    public class DrawTool : ITool
+    {
+        DateTime m_SelectionStart;
+        bool m_SelectionStarted;
+
+        public void Reset()
+        {
+            m_SelectionStarted = false;
+        }
+
+        public void MouseMove(MouseEventArgs e)
+        {
+            if (e == null)
+                throw new ArgumentNullException("e");
+
+            if (e.Button == MouseButtons.Left)
+            {
+                if (m_SelectionStarted)
+                {
+                    DateTime m_Time = m_DayView.GetTimeAt(e.X, e.Y);
+                    m_Time = m_Time.AddMinutes(30);
+
+                    if (m_Time < m_SelectionStart)
+                    {
+                        m_DayView.SelectionStart = m_Time;
+                        m_DayView.SelectionEnd = m_SelectionStart;
+                    }
+                    else
+                    {
+                        m_DayView.SelectionEnd = m_Time;
+                    }
+
+                    m_DayView.Invalidate();
+                }
+            }
+        }
+
+        public void MouseUp(MouseEventArgs e)
+        {
+            if (e == null)
+                throw new ArgumentNullException("e");
+
+            if (e.Button == MouseButtons.Left)
+            {
+                m_DayView.Capture = false;
+                m_SelectionStarted = false;
+
+                m_DayView.RaiseSelectionChanged(EventArgs.Empty);
+
+                if (Complete != null)
+                    Complete(this, EventArgs.Empty);
+            }
+        }
+
+        public void MouseDown(MouseEventArgs e)
+        {
+            if (e == null)
+                throw new ArgumentNullException("e");
+
+            if (e.Button == MouseButtons.Left)
+            {
+                m_SelectionStart = m_DayView.GetTimeAt(e.X, e.Y);
+
+                m_DayView.SelectionStart = m_SelectionStart;
+                m_DayView.SelectionEnd = m_SelectionStart.AddMinutes(30);
+
+                m_SelectionStarted = true;
+
+                m_DayView.Invalidate();
+                m_DayView.Capture = true;
+            }
+        }
+
+        private DayView m_DayView;
+
+        public DayView DayView
+        {
+            get { return m_DayView; }
+            set { m_DayView = value; }
+        }
+
+        public event EventHandler Complete;
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/ITool.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/ITool.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/ITool.cs	(revision 5457)
@@ -0,0 +1,24 @@
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows.Forms;
+
+namespace HeuristicLab.Calendar
+{
+    public interface ITool
+    {
+        DayView DayView
+        {
+            get;
+            set;
+        }
+
+        void Reset();
+
+        void MouseMove( MouseEventArgs e );
+        void MouseUp( MouseEventArgs e );
+        void MouseDown( MouseEventArgs e );
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/SelectionTool.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/SelectionTool.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/SelectionTool.cs	(revision 5457)
@@ -0,0 +1,289 @@
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Drawing;
+
+namespace HeuristicLab.Calendar
+{
+    public class SelectionTool : ITool
+    {
+        private DayView dayView;
+
+        public DayView DayView
+        {
+            get
+            {
+                return dayView;
+            }
+            set
+            {
+                dayView = value;
+            }
+        }
+
+        private DateTime startDate;
+        private TimeSpan length;
+        private Mode mode;
+        private TimeSpan delta;
+
+        public void Reset()
+        {
+            length = TimeSpan.Zero;
+            delta = TimeSpan.Zero;
+        }
+
+        public void MouseMove(System.Windows.Forms.MouseEventArgs e)
+        {
+            if (e == null)
+                throw new ArgumentNullException("e");
+
+            Appointment selection = dayView.SelectedAppointment;
+            Rectangle viewrect = dayView.GetTrueRectangle();
+            Rectangle fdrect = dayView.GetFullDayApptsRectangle();
+
+            if (viewrect.Contains(e.Location) || fdrect.Contains(e.Location))
+            {
+                if ((selection != null) && (!selection.Locked))
+                {
+                    switch (e.Button)
+                    {
+                    case System.Windows.Forms.MouseButtons.Left:
+
+                        // Get time at mouse position
+                        DateTime m_Date = dayView.GetTimeAt(e.X, e.Y);
+
+                        switch (mode)
+                        {
+                            case Mode.Move:
+
+                                    // This works for regular (i.e. non full-day or multi-day appointments)
+
+                                    if (!selection.AllDayEvent && viewrect.Contains(e.Location))
+                                    {
+                                // add delta value
+                                m_Date = m_Date.Add(delta);
+
+                                if (length == TimeSpan.Zero)
+                                {
+                                    startDate = selection.StartDate;
+                                    length = selection.EndDate - startDate;
+                                }
+                                else
+                                {
+                                    DateTime m_EndDate = m_Date.Add(length);
+
+                                            if (m_EndDate.Day == m_Date.Day)
+                                            {
+                                                selection.StartDate = m_Date;
+                                                selection.EndDate = m_EndDate;
+                                                dayView.Invalidate();
+                                                dayView.RaiseAppointmentMove(new AppointmentEventArgs(selection));
+                                            }
+                                        }
+                                    }
+                                    else
+                                    {
+                                        if (fdrect.Contains(e.Location))
+                                        {
+                                            m_Date = m_Date.Add(delta);
+
+                                            int m_DateDiff = m_Date.Subtract(selection.StartDate).Days;
+
+                                            if (m_DateDiff != 0)
+                                            {
+                                                if (selection.StartDate.AddDays(m_DateDiff) > dayView.StartDate)
+                                                {
+                                                    selection.StartDate = selection.StartDate.AddDays(m_DateDiff);
+                                                    selection.EndDate = selection.EndDate.AddDays(m_DateDiff);
+                                                    dayView.Invalidate();
+                                                    dayView.RaiseAppointmentMove(new AppointmentEventArgs(selection));
+                                                }
+                                            }
+                                        }
+                                    }
+
+                                    break;
+
+                                case Mode.ResizeBottom:
+
+                                    if (m_Date > selection.StartDate)
+                                    {
+                                        if (selection.EndDate.Day == m_Date.Day)
+                                        {
+                                            selection.EndDate = m_Date;
+                                            dayView.Invalidate();
+                                            dayView.RaiseAppointmentMove(new AppointmentEventArgs(selection));
+                                        }
+                                    }
+
+                                    break;
+
+                                case Mode.ResizeTop:
+
+                                    if (m_Date < selection.EndDate)
+                                    {
+                                        if (selection.StartDate.Day == m_Date.Day)
+                                        {
+                                            selection.StartDate = m_Date;
+                                            dayView.Invalidate();
+                                            dayView.RaiseAppointmentMove(new AppointmentEventArgs(selection));
+                                        }
+                                    }
+                                    break;
+
+                                case Mode.ResizeLeft:
+                                    if (m_Date.Date < selection.EndDate.Date)
+                                    {
+                                        selection.StartDate = m_Date.Date;
+                                        dayView.Invalidate();
+                                        dayView.RaiseAppointmentMove(new AppointmentEventArgs(selection));
+                                    }
+                                    break;
+
+                                case Mode.ResizeRight:
+                                    if (m_Date.Date >= selection.StartDate.Date)
+                                    {
+                                        selection.EndDate = m_Date.Date.AddDays(1);
+                                        dayView.Invalidate();
+                                        dayView.RaiseAppointmentMove(new AppointmentEventArgs(selection));
+                                    }
+                                    break;
+                            }
+
+                            break;
+
+                        default:
+
+                            Mode tmpNode = GetMode(e);
+
+                            switch (tmpNode)
+                            {
+                                case Mode.Move:
+                                    dayView.Cursor = System.Windows.Forms.Cursors.Default;
+                                    break;
+                                case Mode.ResizeBottom:
+                                case Mode.ResizeTop:
+                                    if (!selection.AllDayEvent)
+                                        dayView.Cursor = System.Windows.Forms.Cursors.SizeNS;
+                                    break;
+                                case Mode.ResizeLeft: // changed by Gimlei
+                                case Mode.ResizeRight:
+                                    if (selection.AllDayEvent)
+                                        DayView.Cursor = System.Windows.Forms.Cursors.SizeWE;
+                                    break;
+                            }
+
+                            break;
+                    }
+                }
+            }
+        }
+
+        private Mode GetMode(System.Windows.Forms.MouseEventArgs e)
+        {
+            DayView.AppointmentView view = null;
+            Boolean gotview = false;
+
+            if (dayView.SelectedAppointment == null)
+                return Mode.None;
+
+            if (dayView.appointmentViews.ContainsKey(dayView.SelectedAppointment))
+            {
+                view = dayView.appointmentViews[dayView.SelectedAppointment];
+                gotview = true;
+            }
+
+            else if (dayView.longappointmentViews.ContainsKey(dayView.SelectedAppointment))
+            {
+                view = dayView.longappointmentViews[dayView.SelectedAppointment];
+                gotview = true;
+            }
+
+            if (gotview)
+            {
+                Rectangle topRect = view.Rectangle;
+                Rectangle bottomRect = view.Rectangle;
+                Rectangle leftRect = view.Rectangle;
+                Rectangle rightRect = view.Rectangle;
+
+                bottomRect.Y = bottomRect.Bottom - 5;
+                bottomRect.Height = 5;
+                topRect.Height = 5;
+                leftRect.Width = 5;
+                rightRect.X += rightRect.Width - 5;
+                rightRect.Width = 5;
+
+                if (topRect.Contains(e.Location))
+                    return Mode.ResizeTop;
+                else if (bottomRect.Contains(e.Location))
+                    return Mode.ResizeBottom;
+                else if (rightRect.Contains(e.Location)) // changed by Gimlei
+                    return Mode.ResizeRight;
+                else if (leftRect.Contains(e.Location))
+                    return Mode.ResizeLeft;
+                else
+                    return Mode.Move;
+            }
+
+            return Mode.None;
+        }
+
+        public void MouseUp(System.Windows.Forms.MouseEventArgs e)
+        {
+            if (e == null)
+                throw new ArgumentNullException("e");
+
+            if (e.Button == System.Windows.Forms.MouseButtons.Left)
+            {
+                if (Complete != null)
+                    Complete(this, EventArgs.Empty);
+            }
+
+            dayView.RaiseSelectionChanged(EventArgs.Empty);
+
+            mode = Mode.Move;
+
+            delta = TimeSpan.Zero;
+        }
+
+        public void MouseDown(System.Windows.Forms.MouseEventArgs e)
+        {
+            if (dayView.SelectedAppointmentIsNew)
+            {
+                dayView.RaiseNewAppointment();
+            }
+
+            if (dayView.CurrentlyEditing)
+                dayView.FinishEditing(false);
+
+            mode = GetMode(e);
+
+            if (dayView.SelectedAppointment != null)
+            {
+                DateTime downPos = dayView.GetTimeAt(e.X, e.Y);
+                // Calculate delta time between selection and clicked point
+                delta = dayView.SelectedAppointment.StartDate - downPos;
+            }
+            else
+            {
+                delta = TimeSpan.Zero;
+            }
+
+            length = TimeSpan.Zero;
+        }
+
+        public event EventHandler Complete;
+
+        enum Mode
+        {
+            ResizeTop,
+            ResizeBottom,
+            ResizeLeft,
+            ResizeRight,
+            Move,
+            None
+        }
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/SelectionType.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/SelectionType.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Calendar/3.3/ViewTools/SelectionType.cs	(revision 5457)
@@ -0,0 +1,15 @@
+
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace HeuristicLab.Calendar
+{
+    public enum SelectionType
+    {
+        DateRange,
+        Appointment,
+        None
+    }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.Designer.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.Designer.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.Designer.cs	(revision 5457)
@@ -0,0 +1,214 @@
+﻿#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+namespace HeuristicLab.Clients.Hive.Views.Administration {
+  partial class HiveAdministrationView {
+    /// <summary> 
+    /// Required designer variable.
+    /// </summary>
+    private System.ComponentModel.IContainer components = null;
+
+    /// <summary> 
+    /// Clean up any resources being used.
+    /// </summary>
+    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+    protected override void Dispose(bool disposing) {
+      if (disposing && (components != null)) {
+        components.Dispose();
+      }
+      base.Dispose(disposing);
+    }
+
+    #region Component Designer generated code
+
+    /// <summary> 
+    /// Required method for Designer support - do not modify 
+    /// the contents of this method with the code editor.
+    /// </summary>
+    private void InitializeComponent() {
+      this.tabAdmin = new System.Windows.Forms.TabControl();
+      this.tabSlaves = new System.Windows.Forms.TabPage();
+      this.tabUsers = new System.Windows.Forms.TabPage();
+      this.treeSlaveGroup = new System.Windows.Forms.TreeView();
+      this.tabSlaveGroup = new System.Windows.Forms.TabControl();
+      this.tabDetails = new System.Windows.Forms.TabPage();
+      this.tabSchedule = new System.Windows.Forms.TabPage();
+      this.tabJobs = new System.Windows.Forms.TabPage();
+      this.splitSlaves = new System.Windows.Forms.SplitContainer();
+      this.scheduleControl1 = new HeuristicLab.Clients.Hive.Views.Administration.ScheduleControl();
+      this.tabAdmin.SuspendLayout();
+      this.tabSlaves.SuspendLayout();
+      this.tabSlaveGroup.SuspendLayout();
+      this.tabSchedule.SuspendLayout();
+      ((System.ComponentModel.ISupportInitialize)(this.splitSlaves)).BeginInit();
+      this.splitSlaves.Panel1.SuspendLayout();
+      this.splitSlaves.Panel2.SuspendLayout();
+      this.splitSlaves.SuspendLayout();
+      this.SuspendLayout();
+      // 
+      // tabAdmin
+      // 
+      this.tabAdmin.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+                  | System.Windows.Forms.AnchorStyles.Left)
+                  | System.Windows.Forms.AnchorStyles.Right)));
+      this.tabAdmin.Controls.Add(this.tabSlaves);
+      this.tabAdmin.Controls.Add(this.tabUsers);
+      this.tabAdmin.Location = new System.Drawing.Point(3, 0);
+      this.tabAdmin.Name = "tabAdmin";
+      this.tabAdmin.SelectedIndex = 0;
+      this.tabAdmin.Size = new System.Drawing.Size(742, 546);
+      this.tabAdmin.TabIndex = 0;
+      // 
+      // tabSlaves
+      // 
+      this.tabSlaves.Controls.Add(this.splitSlaves);
+      this.tabSlaves.Location = new System.Drawing.Point(4, 22);
+      this.tabSlaves.Name = "tabSlaves";
+      this.tabSlaves.Padding = new System.Windows.Forms.Padding(3);
+      this.tabSlaves.Size = new System.Drawing.Size(734, 520);
+      this.tabSlaves.TabIndex = 0;
+      this.tabSlaves.Text = "Slaves";
+      this.tabSlaves.UseVisualStyleBackColor = true;
+      // 
+      // tabUsers
+      // 
+      this.tabUsers.Location = new System.Drawing.Point(4, 22);
+      this.tabUsers.Name = "tabUsers";
+      this.tabUsers.Padding = new System.Windows.Forms.Padding(3);
+      this.tabUsers.Size = new System.Drawing.Size(734, 520);
+      this.tabUsers.TabIndex = 1;
+      this.tabUsers.Text = "Users";
+      this.tabUsers.UseVisualStyleBackColor = true;
+      // 
+      // treeSlaveGroup
+      // 
+      this.treeSlaveGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+                  | System.Windows.Forms.AnchorStyles.Left)
+                  | System.Windows.Forms.AnchorStyles.Right)));
+      this.treeSlaveGroup.Location = new System.Drawing.Point(3, 3);
+      this.treeSlaveGroup.Name = "treeSlaveGroup";
+      this.treeSlaveGroup.Size = new System.Drawing.Size(209, 502);
+      this.treeSlaveGroup.TabIndex = 0;
+      // 
+      // tabSlaveGroup
+      // 
+      this.tabSlaveGroup.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+                  | System.Windows.Forms.AnchorStyles.Left)
+                  | System.Windows.Forms.AnchorStyles.Right)));
+      this.tabSlaveGroup.Controls.Add(this.tabDetails);
+      this.tabSlaveGroup.Controls.Add(this.tabSchedule);
+      this.tabSlaveGroup.Controls.Add(this.tabJobs);
+      this.tabSlaveGroup.Location = new System.Drawing.Point(3, 3);
+      this.tabSlaveGroup.Name = "tabSlaveGroup";
+      this.tabSlaveGroup.SelectedIndex = 0;
+      this.tabSlaveGroup.Size = new System.Drawing.Size(500, 502);
+      this.tabSlaveGroup.TabIndex = 1;
+      // 
+      // tabDetails
+      // 
+      this.tabDetails.Location = new System.Drawing.Point(4, 22);
+      this.tabDetails.Name = "tabDetails";
+      this.tabDetails.Padding = new System.Windows.Forms.Padding(3);
+      this.tabDetails.Size = new System.Drawing.Size(492, 476);
+      this.tabDetails.TabIndex = 0;
+      this.tabDetails.Text = "Details";
+      this.tabDetails.UseVisualStyleBackColor = true;
+      // 
+      // tabSchedule
+      // 
+      this.tabSchedule.Controls.Add(this.scheduleControl1);
+      this.tabSchedule.Location = new System.Drawing.Point(4, 22);
+      this.tabSchedule.Name = "tabSchedule";
+      this.tabSchedule.Padding = new System.Windows.Forms.Padding(3);
+      this.tabSchedule.Size = new System.Drawing.Size(492, 476);
+      this.tabSchedule.TabIndex = 1;
+      this.tabSchedule.Text = "Schedule";
+      this.tabSchedule.UseVisualStyleBackColor = true;
+      // 
+      // tabJobs
+      // 
+      this.tabJobs.Location = new System.Drawing.Point(4, 22);
+      this.tabJobs.Name = "tabJobs";
+      this.tabJobs.Padding = new System.Windows.Forms.Padding(3);
+      this.tabJobs.Size = new System.Drawing.Size(492, 476);
+      this.tabJobs.TabIndex = 2;
+      this.tabJobs.Text = "Jobs";
+      this.tabJobs.UseVisualStyleBackColor = true;
+      // 
+      // splitSlaves
+      // 
+      this.splitSlaves.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+                  | System.Windows.Forms.AnchorStyles.Left)
+                  | System.Windows.Forms.AnchorStyles.Right)));
+      this.splitSlaves.Location = new System.Drawing.Point(3, 6);
+      this.splitSlaves.Name = "splitSlaves";
+      // 
+      // splitSlaves.Panel1
+      // 
+      this.splitSlaves.Panel1.Controls.Add(this.treeSlaveGroup);
+      // 
+      // splitSlaves.Panel2
+      // 
+      this.splitSlaves.Panel2.Controls.Add(this.tabSlaveGroup);
+      this.splitSlaves.Size = new System.Drawing.Size(725, 508);
+      this.splitSlaves.SplitterDistance = 215;
+      this.splitSlaves.TabIndex = 2;
+      // 
+      // scheduleControl1
+      // 
+      this.scheduleControl1.Location = new System.Drawing.Point(7, 7);
+      this.scheduleControl1.Name = "scheduleControl1";
+      this.scheduleControl1.Size = new System.Drawing.Size(862, 562);
+      this.scheduleControl1.TabIndex = 0;
+      // 
+      // HiveAdministrationView
+      // 
+      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+      this.Controls.Add(this.tabAdmin);
+      this.Name = "HiveAdministrationView";
+      this.Size = new System.Drawing.Size(745, 546);
+      this.tabAdmin.ResumeLayout(false);
+      this.tabSlaves.ResumeLayout(false);
+      this.tabSlaveGroup.ResumeLayout(false);
+      this.tabSchedule.ResumeLayout(false);
+      this.splitSlaves.Panel1.ResumeLayout(false);
+      this.splitSlaves.Panel2.ResumeLayout(false);
+      ((System.ComponentModel.ISupportInitialize)(this.splitSlaves)).EndInit();
+      this.splitSlaves.ResumeLayout(false);
+      this.ResumeLayout(false);
+
+    }
+
+    #endregion
+
+    private System.Windows.Forms.TabControl tabAdmin;
+    private System.Windows.Forms.TabPage tabSlaves;
+    private System.Windows.Forms.TabPage tabUsers;
+    private System.Windows.Forms.TreeView treeSlaveGroup;
+    private System.Windows.Forms.TabControl tabSlaveGroup;
+    private System.Windows.Forms.TabPage tabDetails;
+    private System.Windows.Forms.TabPage tabSchedule;
+    private System.Windows.Forms.TabPage tabJobs;
+    private System.Windows.Forms.SplitContainer splitSlaves;
+    private ScheduleControl scheduleControl1;
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs	(revision 5457)
@@ -0,0 +1,69 @@
+﻿#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System.Windows.Forms;
+using HeuristicLab.Clients.Hive.Administration;
+using HeuristicLab.Core.Views;
+using HeuristicLab.MainForm;
+
+namespace HeuristicLab.Clients.Hive.Views.Administration {
+  [View("HiveAdministrationView")]
+  [Content(typeof(HiveAdministrationClient), IsDefaultView = true)]
+  public partial class HiveAdministrationView : ItemView {
+    public new HiveAdministrationClient Content {
+      get { return (HiveAdministrationClient)base.Content; }
+      set { base.Content = value; }
+    }
+
+    public HiveAdministrationView() {
+      InitializeComponent();
+    }
+
+    #region Register Content Events
+    protected override void DeregisterContentEvents() {
+      // TODO: Deregister your event handlers on the Content here
+      base.DeregisterContentEvents();
+    }
+    protected override void RegisterContentEvents() {
+      base.RegisterContentEvents();
+      // TODO: Register your event handlers on the Content here
+    }
+    #endregion
+
+    protected override void OnContentChanged() {
+      base.OnContentChanged();
+      if (Content == null) {
+        // TODO: Put code here when content is null
+      } else {
+        // TODO: Put code here when content has been changed and is not null
+      }
+    }
+
+    protected override void SetEnabledStateOfControls() {
+      base.SetEnabledStateOfControls();
+      // TODO: Put code here to enable or disable controls based on whether the Content is/not null or the view is ReadOnly
+    }
+
+    #region Event Handlers
+    // TODO: Put event handlers here
+    #endregion
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.resx
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.resx	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.resx	(revision 5457)
@@ -0,0 +1,120 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/MenuItems/AdministrationMenuItem.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/MenuItems/AdministrationMenuItem.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/MenuItems/AdministrationMenuItem.cs	(revision 5457)
@@ -0,0 +1,41 @@
+﻿#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+using System.Collections.Generic;
+using HeuristicLab.Clients.Hive.Administration;
+using HeuristicLab.MainForm;
+
+namespace HeuristicLab.Optimizer.MenuItems {
+  public class AdministrationMenuItem : HeuristicLab.MainForm.WindowsForms.MenuItem, IOptimizerUserInterfaceItemProvider {
+    public override string Name {
+      get { return "&Hive Administration 3.4"; }
+    }
+    public override IEnumerable<string> Structure {
+      get { return new string[] { "&Services", "&Hive" }; }
+    }
+    public override void Execute() {
+      MainFormManager.MainForm.ShowContent(new HiveAdministrationClient());
+    }
+    public override int Position {
+      get { return 10000; }
+    }
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.Designer.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.Designer.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.Designer.cs	(revision 5457)
@@ -0,0 +1,253 @@
+﻿namespace HeuristicLab.Clients.Hive.Views.Administration {
+  partial class ScheduleControl {
+    /// <summary> 
+    /// Required designer variable.
+    /// </summary>
+    private System.ComponentModel.IContainer components = null;
+
+    /// <summary> 
+    /// Clean up any resources being used.
+    /// </summary>
+    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+    protected override void Dispose(bool disposing) {
+      if (disposing && (components != null)) {
+        components.Dispose();
+      }
+      base.Dispose(disposing);
+    }
+
+    #region Component Designer generated code
+
+    /// <summary> 
+    /// Required method for Designer support - do not modify 
+    /// the contents of this method with the code editor.
+    /// </summary>
+    private void InitializeComponent() {
+      HeuristicLab.Calendar.DrawTool drawTool1 = new HeuristicLab.Calendar.DrawTool();
+      this.cbx_forcePush = new System.Windows.Forms.CheckBox();
+      this.btnClearCal = new System.Windows.Forms.Button();
+      this.btnSaveCal = new System.Windows.Forms.Button();
+      this.groupBox1 = new System.Windows.Forms.GroupBox();
+      this.txttimeTo = new System.Windows.Forms.DateTimePicker();
+      this.txttimeFrom = new System.Windows.Forms.DateTimePicker();
+      this.dtpTo = new System.Windows.Forms.DateTimePicker();
+      this.dtpFrom = new System.Windows.Forms.DateTimePicker();
+      this.chbade = new System.Windows.Forms.CheckBox();
+      this.btnRecurrence = new System.Windows.Forms.Button();
+      this.btbDelete = new System.Windows.Forms.Button();
+      this.label2 = new System.Windows.Forms.Label();
+      this.label1 = new System.Windows.Forms.Label();
+      this.btCreate = new System.Windows.Forms.Button();
+      this.mcOnline = new System.Windows.Forms.MonthCalendar();
+      this.dvOnline = new HeuristicLab.Calendar.DayView();
+      this.groupBox1.SuspendLayout();
+      this.SuspendLayout();
+      // 
+      // cbx_forcePush
+      // 
+      this.cbx_forcePush.AutoSize = true;
+      this.cbx_forcePush.Location = new System.Drawing.Point(633, 69);
+      this.cbx_forcePush.Name = "cbx_forcePush";
+      this.cbx_forcePush.Size = new System.Drawing.Size(80, 17);
+      this.cbx_forcePush.TabIndex = 53;
+      this.cbx_forcePush.Text = "Force Push";
+      this.cbx_forcePush.UseVisualStyleBackColor = true;
+      // 
+      // btnClearCal
+      // 
+      this.btnClearCal.Location = new System.Drawing.Point(633, 9);
+      this.btnClearCal.Name = "btnClearCal";
+      this.btnClearCal.Size = new System.Drawing.Size(199, 23);
+      this.btnClearCal.TabIndex = 52;
+      this.btnClearCal.Text = "Clear Calendar";
+      this.btnClearCal.UseVisualStyleBackColor = true;
+      // 
+      // btnSaveCal
+      // 
+      this.btnSaveCal.Location = new System.Drawing.Point(633, 40);
+      this.btnSaveCal.Name = "btnSaveCal";
+      this.btnSaveCal.Size = new System.Drawing.Size(199, 23);
+      this.btnSaveCal.TabIndex = 51;
+      this.btnSaveCal.Text = "Save Calendar";
+      this.btnSaveCal.UseVisualStyleBackColor = true;
+      // 
+      // groupBox1
+      // 
+      this.groupBox1.Controls.Add(this.txttimeTo);
+      this.groupBox1.Controls.Add(this.txttimeFrom);
+      this.groupBox1.Controls.Add(this.dtpTo);
+      this.groupBox1.Controls.Add(this.dtpFrom);
+      this.groupBox1.Controls.Add(this.chbade);
+      this.groupBox1.Controls.Add(this.btnRecurrence);
+      this.groupBox1.Controls.Add(this.btbDelete);
+      this.groupBox1.Controls.Add(this.label2);
+      this.groupBox1.Controls.Add(this.label1);
+      this.groupBox1.Controls.Add(this.btCreate);
+      this.groupBox1.Location = new System.Drawing.Point(373, 4);
+      this.groupBox1.Name = "groupBox1";
+      this.groupBox1.Size = new System.Drawing.Size(254, 161);
+      this.groupBox1.TabIndex = 50;
+      this.groupBox1.TabStop = false;
+      // 
+      // txttimeTo
+      // 
+      this.txttimeTo.CustomFormat = "HH:00";
+      this.txttimeTo.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+      this.txttimeTo.Location = new System.Drawing.Point(164, 45);
+      this.txttimeTo.Name = "txttimeTo";
+      this.txttimeTo.ShowUpDown = true;
+      this.txttimeTo.Size = new System.Drawing.Size(73, 20);
+      this.txttimeTo.TabIndex = 40;
+      // 
+      // txttimeFrom
+      // 
+      this.txttimeFrom.CustomFormat = "HH:00";
+      this.txttimeFrom.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+      this.txttimeFrom.Location = new System.Drawing.Point(164, 12);
+      this.txttimeFrom.Name = "txttimeFrom";
+      this.txttimeFrom.ShowUpDown = true;
+      this.txttimeFrom.Size = new System.Drawing.Size(73, 20);
+      this.txttimeFrom.TabIndex = 39;
+      // 
+      // dtpTo
+      // 
+      this.dtpTo.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+      this.dtpTo.Location = new System.Drawing.Point(72, 45);
+      this.dtpTo.Name = "dtpTo";
+      this.dtpTo.Size = new System.Drawing.Size(89, 20);
+      this.dtpTo.TabIndex = 33;
+      // 
+      // dtpFrom
+      // 
+      this.dtpFrom.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
+      this.dtpFrom.Location = new System.Drawing.Point(72, 12);
+      this.dtpFrom.Name = "dtpFrom";
+      this.dtpFrom.Size = new System.Drawing.Size(89, 20);
+      this.dtpFrom.TabIndex = 32;
+      // 
+      // chbade
+      // 
+      this.chbade.AutoSize = true;
+      this.chbade.Location = new System.Drawing.Point(135, 70);
+      this.chbade.Name = "chbade";
+      this.chbade.Size = new System.Drawing.Size(90, 17);
+      this.chbade.TabIndex = 31;
+      this.chbade.Text = "All Day Event";
+      this.chbade.UseVisualStyleBackColor = true;
+      // 
+      // btnRecurrence
+      // 
+      this.btnRecurrence.Location = new System.Drawing.Point(135, 129);
+      this.btnRecurrence.Name = "btnRecurrence";
+      this.btnRecurrence.Size = new System.Drawing.Size(113, 26);
+      this.btnRecurrence.TabIndex = 30;
+      this.btnRecurrence.Text = "Recurrence";
+      this.btnRecurrence.UseVisualStyleBackColor = true;
+      // 
+      // btbDelete
+      // 
+      this.btbDelete.Location = new System.Drawing.Point(8, 129);
+      this.btbDelete.Name = "btbDelete";
+      this.btbDelete.Size = new System.Drawing.Size(114, 26);
+      this.btbDelete.TabIndex = 25;
+      this.btbDelete.Text = "Delete";
+      this.btbDelete.UseVisualStyleBackColor = true;
+      // 
+      // label2
+      // 
+      this.label2.AutoSize = true;
+      this.label2.Location = new System.Drawing.Point(16, 46);
+      this.label2.Name = "label2";
+      this.label2.Size = new System.Drawing.Size(55, 13);
+      this.label2.TabIndex = 23;
+      this.label2.Text = "End Time:";
+      // 
+      // label1
+      // 
+      this.label1.AutoSize = true;
+      this.label1.Location = new System.Drawing.Point(16, 15);
+      this.label1.Name = "label1";
+      this.label1.Size = new System.Drawing.Size(58, 13);
+      this.label1.TabIndex = 21;
+      this.label1.Text = "Start Time:";
+      // 
+      // btCreate
+      // 
+      this.btCreate.Location = new System.Drawing.Point(6, 93);
+      this.btCreate.Name = "btCreate";
+      this.btCreate.Size = new System.Drawing.Size(242, 26);
+      this.btCreate.TabIndex = 20;
+      this.btCreate.Text = "Save Appointment";
+      this.btCreate.UseVisualStyleBackColor = true;
+      // 
+      // mcOnline
+      // 
+      this.mcOnline.CalendarDimensions = new System.Drawing.Size(2, 1);
+      this.mcOnline.Location = new System.Drawing.Point(9, 9);
+      this.mcOnline.Name = "mcOnline";
+      this.mcOnline.TabIndex = 49;
+      // 
+      // dvOnline
+      // 
+      drawTool1.DayView = this.dvOnline;
+      this.dvOnline.ActiveTool = drawTool1;
+      this.dvOnline.AmPmDisplay = false;
+      this.dvOnline.AppointmentDuration = HeuristicLab.Calendar.AppointmentSlotDuration.SixtyMinutes;
+      this.dvOnline.AppointmentHeightMode = HeuristicLab.Calendar.AppHeightDrawMode.TrueHeightAll;
+      this.dvOnline.DayHeadersHeight = 15;
+      this.dvOnline.DaysToShow = 7;
+      this.dvOnline.DrawAllAppBorder = false;
+      this.dvOnline.EnableDurationDisplay = false;
+      this.dvOnline.EnableRoundedCorners = false;
+      this.dvOnline.EnableShadows = false;
+      this.dvOnline.EnableTimeIndicator = false;
+      this.dvOnline.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F);
+      this.dvOnline.Location = new System.Drawing.Point(9, 176);
+      this.dvOnline.MinHalfHourApp = false;
+      this.dvOnline.Name = "dvOnline";
+      this.dvOnline.SelectionEnd = new System.DateTime(((long)(0)));
+      this.dvOnline.SelectionStart = new System.DateTime(((long)(0)));
+      this.dvOnline.Size = new System.Drawing.Size(823, 354);
+      this.dvOnline.StartDate = new System.DateTime(((long)(0)));
+      this.dvOnline.TabIndex = 48;
+      // 
+      // ScheduleControl
+      // 
+      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+      this.Controls.Add(this.cbx_forcePush);
+      this.Controls.Add(this.btnClearCal);
+      this.Controls.Add(this.btnSaveCal);
+      this.Controls.Add(this.groupBox1);
+      this.Controls.Add(this.mcOnline);
+      this.Controls.Add(this.dvOnline);
+      this.Name = "ScheduleControl";
+      this.Size = new System.Drawing.Size(862, 562);
+      this.groupBox1.ResumeLayout(false);
+      this.groupBox1.PerformLayout();
+      this.ResumeLayout(false);
+      this.PerformLayout();
+
+    }
+
+    #endregion
+
+    private System.Windows.Forms.CheckBox cbx_forcePush;
+    private System.Windows.Forms.Button btnClearCal;
+    private System.Windows.Forms.Button btnSaveCal;
+    private System.Windows.Forms.GroupBox groupBox1;
+    private System.Windows.Forms.DateTimePicker txttimeTo;
+    private System.Windows.Forms.DateTimePicker txttimeFrom;
+    private System.Windows.Forms.DateTimePicker dtpTo;
+    private System.Windows.Forms.DateTimePicker dtpFrom;
+    private System.Windows.Forms.CheckBox chbade;
+    private System.Windows.Forms.Button btnRecurrence;
+    private System.Windows.Forms.Button btbDelete;
+    private System.Windows.Forms.Label label2;
+    private System.Windows.Forms.Label label1;
+    private System.Windows.Forms.Button btCreate;
+    private System.Windows.Forms.MonthCalendar mcOnline;
+    private Calendar.DayView dvOnline;
+
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.cs	(revision 5457)
@@ -0,0 +1,16 @@
+﻿using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace HeuristicLab.Clients.Hive.Views.Administration {
+  public partial class ScheduleControl : UserControl {
+    public ScheduleControl() {
+      InitializeComponent();
+    }
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.resx
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.resx	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/ScheduleControl.resx	(revision 5457)
@@ -0,0 +1,120 @@
+﻿<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLab.Clients.Hive.Views-3.4.csproj
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLab.Clients.Hive.Views-3.4.csproj	(revision 5456)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLab.Clients.Hive.Views-3.4.csproj	(revision 5457)
@@ -118,4 +118,17 @@
   <ItemGroup>
     <None Include="HeuristicLabClientsHiveViewsPlugin.cs.frame" />
+    <Compile Include="Administration\HiveAdministrationView.cs">
+      <SubType>UserControl</SubType>
+    </Compile>
+    <Compile Include="Administration\HiveAdministrationView.Designer.cs">
+      <DependentUpon>HiveAdministrationView.cs</DependentUpon>
+    </Compile>
+    <Compile Include="Administration\MenuItems\AdministrationMenuItem.cs" />
+    <Compile Include="Administration\ScheduleControl.cs">
+      <SubType>UserControl</SubType>
+    </Compile>
+    <Compile Include="Administration\ScheduleControl.Designer.cs">
+      <DependentUpon>ScheduleControl.cs</DependentUpon>
+    </Compile>
     <Compile Include="ExperimentManager\HiveExperimentListView.cs">
       <SubType>UserControl</SubType>
@@ -163,4 +176,10 @@
   </ItemGroup>
   <ItemGroup>
+    <EmbeddedResource Include="Administration\HiveAdministrationView.resx">
+      <DependentUpon>HiveAdministrationView.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Administration\ScheduleControl.resx">
+      <DependentUpon>ScheduleControl.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="ExperimentManager\HiveExperimentManagerView.resx">
       <DependentUpon>HiveExperimentManagerView.cs</DependentUpon>
@@ -177,4 +196,8 @@
   </ItemGroup>
   <ItemGroup>
+    <ProjectReference Include="..\..\HeuristicLab.Calendar\3.3\HeuristicLab.Calendar-3.3.csproj">
+      <Project>{D17A4D6A-4CAA-4470-8A19-F42463C021FD}</Project>
+      <Name>HeuristicLab.Calendar-3.3</Name>
+    </ProjectReference>
     <ProjectReference Include="..\..\HeuristicLab.Clients.Hive\3.4\HeuristicLab.Clients.Hive-3.4.csproj">
       <Project>{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}</Project>
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLabClientsHiveViewsPlugin.cs.frame
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLabClientsHiveViewsPlugin.cs.frame	(revision 5456)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/HeuristicLabClientsHiveViewsPlugin.cs.frame	(revision 5457)
@@ -11,4 +11,5 @@
   [PluginDependency("HeuristicLab.Core", "3.3")]
   [PluginDependency("HeuristicLab.Persistence", "3.3")]
+  [PluginDependency("HeuristicLab.Calendar", "3.3")]
   public class HeuristicLabClientsHiveViewsPlugin : PluginBase {
   }
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Administration/HiveAdministrationClient.cs
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Administration/HiveAdministrationClient.cs	(revision 5457)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/Administration/HiveAdministrationClient.cs	(revision 5457)
@@ -0,0 +1,42 @@
+﻿#region License Information
+/* HeuristicLab
+ * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
+ *
+ * This file is part of HeuristicLab.
+ *
+ * HeuristicLab is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * HeuristicLab is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
+ */
+#endregion
+
+
+using HeuristicLab.Common;
+using HeuristicLab.Core;
+namespace HeuristicLab.Clients.Hive.Administration {
+  [Item("Hive Administration", "Hive Administration")]
+  public class HiveAdministrationClient : Item {
+
+    public HiveAdministrationClient() { }
+
+
+    protected HiveAdministrationClient(HiveAdministrationClient original, Cloner cloner)
+      : base(original, cloner) {
+      //TODO: clone
+    }
+    public override IDeepCloneable Clone(HeuristicLab.Common.Cloner cloner) {
+      return new HiveAdministrationClient(this, cloner);
+    }
+
+
+  }
+}
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HeuristicLab.Clients.Hive-3.4.csproj
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HeuristicLab.Clients.Hive-3.4.csproj	(revision 5456)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive/3.4/HeuristicLab.Clients.Hive-3.4.csproj	(revision 5457)
@@ -113,4 +113,5 @@
   <ItemGroup>
     <None Include="HeuristicLabClientsHivePlugin.cs.frame" />
+    <Compile Include="Administration\HiveAdministrationClient.cs" />
     <Compile Include="Exceptions\AddJobToHiveException.cs" />
     <Compile Include="Exceptions\JobResultPollingException.cs" />
@@ -146,5 +147,4 @@
   </ItemGroup>
   <ItemGroup>
-    <Folder Include="Administration\" />
     <Folder Include="Slave\" />
   </ItemGroup>
Index: /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Hive 3.4.sln
===================================================================
--- /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Hive 3.4.sln	(revision 5456)
+++ /branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Hive 3.4.sln	(revision 5457)
@@ -31,5 +31,5 @@
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.Hive-3.4", "HeuristicLab.Services.Hive\3.4\HeuristicLab.Services.Hive-3.4.csproj", "{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}"
 EndProject
-Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Hive-3.4", "HeuristicLab.Services.Hive.Web\Hive-3.4", "{0CA6706D-A569-45DE-A85C-4158891CC1BC}"
+Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "Hive-3.4", "HeuristicLab.Services.Hive.Web\Hive-3.4\", "{0CA6706D-A569-45DE-A85C-4158891CC1BC}"
 	ProjectSection(WebsiteProperties) = preProject
 		TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
@@ -49,5 +49,5 @@
 		Release.AspNetCompiler.FixedNames = "false"
 		Release.AspNetCompiler.Debug = "False"
-		VWDPort = "49885"
+		VWDPort = "49532"
 		DefaultWebSiteLanguage = "Visual C#"
 	EndProjectSection
@@ -66,4 +66,6 @@
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Clients.Hive.Tests-3.4", "HeuristicLab.Clients.Hive.Tests\HeuristicLab.Clients.Hive.Tests-3.4.csproj", "{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Calendar-3.3", "HeuristicLab.Calendar\3.3\HeuristicLab.Calendar-3.3.csproj", "{D17A4D6A-4CAA-4470-8A19-F42463C021FD}"
 EndProject
 Global
@@ -74,7 +76,9 @@
 		Debug|Any CPU = Debug|Any CPU
 		Debug|Mixed Platforms = Debug|Mixed Platforms
+		Debug|x64 = Debug|x64
 		Debug|x86 = Debug|x86
 		Release|Any CPU = Release|Any CPU
 		Release|Mixed Platforms = Release|Mixed Platforms
+		Release|x64 = Release|x64
 		Release|x86 = Release|x86
 	EndGlobalSection
@@ -84,4 +88,5 @@
 		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x64.ActiveCfg = Debug|x86
 		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.ActiveCfg = Debug|x86
 		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Debug|x86.Build.0 = Debug|x86
@@ -90,4 +95,5 @@
 		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|x64.ActiveCfg = Release|x86
 		{F98A1740-9AC9-4D36-A582-6A2D0D06978D}.Release|x86.ActiveCfg = Release|Any CPU
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -95,4 +101,5 @@
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x64.ActiveCfg = Debug|x86
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.ActiveCfg = Debug|x86
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Debug|x86.Build.0 = Debug|x86
@@ -101,4 +108,5 @@
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|x64.ActiveCfg = Release|x86
 		{989FE92B-484E-41EE-87E2-6A24AF0381D8}.Release|x86.ActiveCfg = Release|Any CPU
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -106,4 +114,5 @@
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x64.ActiveCfg = Debug|x86
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.ActiveCfg = Debug|x86
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Debug|x86.Build.0 = Debug|x86
@@ -112,4 +121,5 @@
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{14424A16-48D4-445E-80BF-DDF617548BBB}.Release|x64.ActiveCfg = Release|x86
 		{14424A16-48D4-445E-80BF-DDF617548BBB}.Release|x86.ActiveCfg = Release|Any CPU
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -117,4 +127,5 @@
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x64.ActiveCfg = Debug|x86
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.ActiveCfg = Debug|x86
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Debug|x86.Build.0 = Debug|x86
@@ -123,4 +134,5 @@
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|x64.ActiveCfg = Release|x86
 		{EC2C8109-6E1E-4C88-9A2B-908CFF2EF4AC}.Release|x86.ActiveCfg = Release|Any CPU
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -128,4 +140,5 @@
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x64.ActiveCfg = Debug|x86
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.ActiveCfg = Debug|x86
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Debug|x86.Build.0 = Debug|x86
@@ -134,4 +147,5 @@
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|x64.ActiveCfg = Release|x86
 		{B5EF1E5A-9F3D-40B9-B4B0-30AADF2E2CEB}.Release|x86.ActiveCfg = Release|Any CPU
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -139,4 +153,5 @@
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x64.ActiveCfg = Debug|x86
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.ActiveCfg = Debug|x86
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Debug|x86.Build.0 = Debug|x86
@@ -145,4 +160,5 @@
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|x64.ActiveCfg = Release|x86
 		{E1D6C801-892A-406A-B606-F158E36DD3C3}.Release|x86.ActiveCfg = Release|Any CPU
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -150,4 +166,5 @@
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x64.ActiveCfg = Debug|x86
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.ActiveCfg = Debug|x86
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Debug|x86.Build.0 = Debug|x86
@@ -156,4 +173,5 @@
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|x64.ActiveCfg = Release|x86
 		{8C0D9F39-397F-4DBE-856F-BC4DC0FE23F8}.Release|x86.ActiveCfg = Release|Any CPU
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -161,4 +179,5 @@
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x64.ActiveCfg = Debug|x86
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.ActiveCfg = Debug|x86
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Debug|x86.Build.0 = Debug|x86
@@ -167,4 +186,5 @@
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|x64.ActiveCfg = Release|x86
 		{CF9DA321-AC1B-4FD3-9EC3-67BC6B861BDE}.Release|x86.ActiveCfg = Release|Any CPU
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -172,4 +192,5 @@
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|x64.ActiveCfg = Debug|Any CPU
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|x86.ActiveCfg = Debug|Any CPU
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Debug|x86.Build.0 = Debug|Any CPU
@@ -178,4 +199,5 @@
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|Mixed Platforms.Build.0 = Debug|Any CPU
+		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|x64.ActiveCfg = Debug|Any CPU
 		{0CA6706D-A569-45DE-A85C-4158891CC1BC}.Release|x86.ActiveCfg = Debug|Any CPU
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -183,4 +205,5 @@
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x64.ActiveCfg = Debug|x86
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.ActiveCfg = Debug|x86
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Debug|x86.Build.0 = Debug|x86
@@ -189,4 +212,5 @@
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|x64.ActiveCfg = Release|x86
 		{C4CBD11E-1B83-464A-B0AD-0DC0FF7E57AA}.Release|x86.ActiveCfg = Release|Any CPU
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -194,4 +218,5 @@
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x64.ActiveCfg = Debug|x86
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.ActiveCfg = Debug|x86
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Debug|x86.Build.0 = Debug|x86
@@ -200,4 +225,5 @@
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|x64.ActiveCfg = Release|x86
 		{17187EAC-5D8C-4B11-9CEA-D88F71B59658}.Release|x86.ActiveCfg = Release|Any CPU
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -205,4 +231,5 @@
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Debug|Mixed Platforms.Build.0 = Debug|x86
+		{464D70B8-2D91-485C-B622-22E4A4891C68}.Debug|x64.ActiveCfg = Debug|x86
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Debug|x86.ActiveCfg = Debug|x86
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Debug|x86.Build.0 = Debug|x86
@@ -211,4 +238,5 @@
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Release|Mixed Platforms.ActiveCfg = Release|x86
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Release|Mixed Platforms.Build.0 = Release|x86
+		{464D70B8-2D91-485C-B622-22E4A4891C68}.Release|x64.ActiveCfg = Release|x86
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Release|x86.ActiveCfg = Release|x86
 		{464D70B8-2D91-485C-B622-22E4A4891C68}.Release|x86.Build.0 = Release|x86
@@ -217,4 +245,5 @@
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Debug|Mixed Platforms.Build.0 = Debug|x86
+		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Debug|x64.ActiveCfg = Debug|x86
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Debug|x86.ActiveCfg = Debug|x86
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Debug|x86.Build.0 = Debug|x86
@@ -222,4 +251,5 @@
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Release|Mixed Platforms.ActiveCfg = Release|x86
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Release|Mixed Platforms.Build.0 = Release|x86
+		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Release|x64.ActiveCfg = Release|x86
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Release|x86.ActiveCfg = Release|x86
 		{BA8001DE-E83C-4B1F-8B2E-2695C4222491}.Release|x86.Build.0 = Release|x86
@@ -227,8 +257,12 @@
 		{28711372-0255-4883-9BED-81E150D73880}.Debug|Any CPU.Build.0 = Debug
 		{28711372-0255-4883-9BED-81E150D73880}.Debug|Mixed Platforms.ActiveCfg = Debug
+		{28711372-0255-4883-9BED-81E150D73880}.Debug|x64.ActiveCfg = Debug
+		{28711372-0255-4883-9BED-81E150D73880}.Debug|x64.Build.0 = Debug
 		{28711372-0255-4883-9BED-81E150D73880}.Debug|x86.ActiveCfg = Debug
 		{28711372-0255-4883-9BED-81E150D73880}.Debug|x86.Build.0 = Debug
 		{28711372-0255-4883-9BED-81E150D73880}.Release|Any CPU.ActiveCfg = Release
 		{28711372-0255-4883-9BED-81E150D73880}.Release|Mixed Platforms.ActiveCfg = Release
+		{28711372-0255-4883-9BED-81E150D73880}.Release|x64.ActiveCfg = Release
+		{28711372-0255-4883-9BED-81E150D73880}.Release|x64.Build.0 = Release
 		{28711372-0255-4883-9BED-81E150D73880}.Release|x86.ActiveCfg = Release
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -236,4 +270,5 @@
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Debug|Mixed Platforms.Build.0 = Debug|x86
+		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Debug|x64.ActiveCfg = Debug|x86
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Debug|x86.ActiveCfg = Debug|x86
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Debug|x86.Build.0 = Debug|x86
@@ -241,4 +276,5 @@
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Release|Mixed Platforms.ActiveCfg = Release|x86
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Release|Mixed Platforms.Build.0 = Release|x86
+		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Release|x64.ActiveCfg = Release|x86
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Release|x86.ActiveCfg = Release|x86
 		{7C4B1DE4-FC9A-4448-BCF8-3CB3FA3CB8FA}.Release|x86.Build.0 = Release|x86
@@ -247,4 +283,5 @@
 		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
 		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Debug|x64.ActiveCfg = Debug|Any CPU
 		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Debug|x86.ActiveCfg = Debug|Any CPU
 		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -252,5 +289,22 @@
 		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
 		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Release|x64.ActiveCfg = Release|Any CPU
 		{8D40A723-139D-40E4-8BBA-4CB309A9E4B9}.Release|x86.ActiveCfg = Release|Any CPU
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|Mixed Platforms.ActiveCfg = Debug|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|Mixed Platforms.Build.0 = Debug|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|x64.ActiveCfg = Debug|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|x64.Build.0 = Debug|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|x86.ActiveCfg = Debug|x86
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Debug|x86.Build.0 = Debug|x86
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|Any CPU.Build.0 = Release|Any CPU
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|Mixed Platforms.ActiveCfg = Release|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|Mixed Platforms.Build.0 = Release|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|x64.ActiveCfg = Release|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|x64.Build.0 = Release|x64
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|x86.ActiveCfg = Release|x86
+		{D17A4D6A-4CAA-4470-8A19-F42463C021FD}.Release|x86.Build.0 = Release|x86
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
