Exemple #1
0
        public YearEventView(ISelfConfigureCell cell)
        {
            InitializeComponent();

            for (int i = 1; i < 13; i++)
            {
                cell = new YearView(i);

                BringFormChild(cell, MainPanel);
            }
        }
Exemple #2
0
        public MonthEventView(ISelfConfigureCell cell)
        {
            InitializeComponent();

            //MessageBox.Show(DateTime.Now.ToString());

            List <Event> eventList = new List <Event>();

            eventList = Conexion.Load <Event>(null, "Select_Events");

            foreach (var item in eventList)
            {
                timeStart.Add(Convert.ToDateTime(item.startDate));
            }

            for (int i = 1; i <= DateTime.DaysInMonth(2019, 12); i++)
            {
                //cell = new MonthView(i, eventList[i]);

                BringFormChild(cell, MainMonthPanel);
            }
        }