Ejemplo n.º 1
0
            protected override void OnInit(InitArgs e)
            {
                DateTime start = new DateTime(2015, 1, 1, 12, 0, 0);
                DateTime end   = new DateTime(2016, 1, 1, 12, 0, 0);

                Timeline = new TimeCellCollection();
                for (DateTime cell = start; cell < end; cell = cell.AddDays(1))
                {
                    Timeline.Add(cell, cell.AddDays(1));
                }

                LoadRoomsAndReservations();
                ScrollTo(DateTime.Today.AddDays(-1));
                Separators.Add(DateTime.Now, Color.Red);
                UpdateWithMessage("Welcome!", CallBackUpdateType.Full);
            }
Ejemplo n.º 2
0
            private void LoadInit(int changeDate = 0)
            {
                DateTime start = DateTime.Now.AddDays(-3);
                DateTime end   = DateTime.Now.AddDays(3);

                Timeline = new TimeCellCollection();
                for (DateTime cell = start; cell < end; cell = cell.AddDays(1))
                {
                    // Timeline.Add(cell, cell.AddDays(1));
                }

                Timeline.Add(DateTime.Now, DateTime.Now.AddDays(1));

                LoadRoomsAndReservations();
                ScrollTo(DateTime.Today.AddDays(-1));
                Separators.Add(changeDate == 0 ? DateTime.Now.AddDays(1) : dateChange, Color.Red);

                UpdateWithMessage("Welcome!", CallBackUpdateType.Full);
            }
            private void LoadInit(int changeDate= 0)
            {
                DateTime start = DateTime.Now.AddDays(-3);
                DateTime end = DateTime.Now.AddDays(3);

                Timeline = new TimeCellCollection();
                for (DateTime cell = start; cell < end; cell = cell.AddDays(1))
                {
                   // Timeline.Add(cell, cell.AddDays(1));
                }

                Timeline.Add(DateTime.Now, DateTime.Now.AddDays(1));

                LoadRoomsAndReservations();
                ScrollTo(DateTime.Today.AddDays(-1));
                Separators.Add(changeDate == 0 ? DateTime.Now.AddDays(1) : dateChange, Color.Red);

                UpdateWithMessage("Welcome!", CallBackUpdateType.Full);
            }