Exemplo n.º 1
0
		public MonthControl(CalendarMonth data)
		{
			InitializeComponent();
			Data = data;
			Days = new List<DayControl>();
			laMonthName.Text = Data.Name;
			Resize += MonthControl_Resize;
			BuildControls();
		}
Exemplo n.º 2
0
		public void LoadMonths()
		{
			Months.Clear();
			for (int i = 1; i <= 12; i++)
			{
				var month = new CalendarMonth(this);
				month.MonthFirstDay = new DateTime(Year, i, 1);
				month.LoadDays();
				Months.Add(month);
			}

			_libraryStorageWatcher.Path = RootFolderPath;
			_libraryStorageWatcher.Created += (sender, e) =>
			{
				if (!Parent.Files.Select(x => x.FullName).Contains(e.FullPath))
					Parent.Files.Add(new FileInfo(e.FullPath));
			};
			_libraryStorageWatcher.EnableRaisingEvents = true;
		}
Exemplo n.º 3
0
		public CalendarDay(CalendarMonth parent)
		{
			Parent = parent;
		}