Example #1
0
        public Canvases(Frames fr, int year, int month)
        {
            _Brushes = new List <SolidColorBrush>();
            InitializeBrushes();
            _Scroll = new ScrollViewer();
            _Canvas = new Canvas();

            _TextBlocks = new List <TextBlock>();
            _Lines      = new List <Line>();
            _Rectangles = new List <List <List <Rectangle> > >();

            _CheckBoxesPerf  = new List <CheckBox>();
            _CheckBoxesPause = new List <CheckBox>();
            _TasksTextBlocks = new List <TextBlock>();

            Markup(year, month);
            InitializeRectList(fr);
        }
Example #2
0
        public void AddPages(Frames fr)
        {
            int buffYear = CurrentYear;

            CurrentYear = 0;
            int year = DateTime.Now.Year;

            for (int i = 0; i <= frame_.NumberOfYears; i++) //? =
            {
                List <Pages> p = new List <Pages>();
                for (int j = 0; j < 12; j++)
                {
                    p.Add(PageConstructor(fr, year, j + 1, CurrentYear));
                }
                pages_.Add(p);
                ++CurrentYear;
                ++year;
            }
            CurrentYear = buffYear;
        }
Example #3
0
 private void CreateCanvas(Frames fr, int year, int month)
 {
     canvas = new Canvases(fr, year, month);
 }
Example #4
0
 public void CreatePage(Frames fr, int year, int month, int yearIndex)
 {
     CreateCanvas(fr, year, month);
     InitializeTasksOnCanvas(fr, yearIndex, month);
     page.Content = canvas._Scroll;
 }