public MainPageHandler(MainPageViewModel viewmodel) : base(viewmodel) { proxy = new WorktimeProxy(); _viewmodel = viewmodel; _viewmodel.Date = DateTime.Now; LoadWorktimes(); }
//private Dictionary< WorktimeEventDetails> _cepair; #endregion public CalendarHandler(T viewmodel) : base(viewmodel) { _viewmodel = viewmodel; _times = new Dictionary <DateTime, TimeSpan>(); _employeePlacementIndex = new EmployeePlacementIndex(); _starttime = new TimeSpan(8, 00, 0); _endtime = new TimeSpan(23, 00, 0); _catalogInterface = new WorktimeProxy(); //_cepair = new List<WorktimeEventDetails>(); #region timePlanCollection initialization _timePlanCollection1 = new Dictionary <TimeSpan, TimeIntervalDetails>(); _timePlanCollection2 = new Dictionary <TimeSpan, TimeIntervalDetails>(); _timePlanCollection3 = new Dictionary <TimeSpan, TimeIntervalDetails>(); _timePlanCollection4 = new Dictionary <TimeSpan, TimeIntervalDetails>(); _timePlanCollection5 = new Dictionary <TimeSpan, TimeIntervalDetails>(); _timePlanCollection6 = new Dictionary <TimeSpan, TimeIntervalDetails>(); _timePlanCollection7 = new Dictionary <TimeSpan, TimeIntervalDetails>(); #endregion #region Color Selection _colors = new Dictionary <int, string>(); _colors.Add(1, "DarkMagenta"); _colors.Add(2, "DarkOrange"); _colors.Add(3, "DarkGreen"); _colors.Add(4, "Aqua"); _colors.Add(5, "Indigo"); _colors.Add(6, "Plum"); _colors.Add(7, "MediumPurple"); #endregion _viewmodel.Day1Header = DateTime.Now; UpdateObsCollection updater = new UpdateObsCollection(); updater.GetEmployeesAsync(_viewmodel.Employees); }