Exemplo n.º 1
0
        private void addEvent(Event even)
        {
            ItemInMainGrid grid = new ItemInMainGrid();

            grid.AddOnClickHandler((e, a) =>
            {
                EventWindow window = new EventWindow(even);
                window.ShowDialog();
            });

            grid.LeftText  = even.getTitle();
            grid.RightText = DateUtil.CZ_SHORT_DATE_FORMAT.format(even.getStart());

            eventsColumnView.Children.Add(grid);
        }
Exemplo n.º 2
0
        private void addItem(TEItem te, int column)
        {
            ItemInMainGrid grid = new ItemInMainGrid();

            grid.AddOnClickHandler((e, a) =>
            {
                TEWindow window = new TEWindow(te);
                window.ShowDialog();
            });

            grid.LeftText  = te.getTitle();
            grid.RightText = DateUtil.CZ_SHORT_DATE_FORMAT.format(te.getDate());

            if (column == 1)
            {
                examsColumnView.Children.Add(grid);
            }
            else
            {
                tasksColumnView.Children.Add(grid);
            }
        }