Initial commit
Added all files from https://sourceforge.net/p/winformscalenda/code/HEAD/tarball
This commit is contained in:
41
WindowsFormsCalendar/Enums/CalendarDaysMode.cs
Normal file
41
WindowsFormsCalendar/Enums/CalendarDaysMode.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
Copyright 2012 Justin LeCheminant
|
||||
|
||||
This file is part of WindowsFormsCalendar.
|
||||
|
||||
indowsFormsCalendar is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
indowsFormsCalendar is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with indowsFormsCalendar. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Enumerates the possible modes of the days visualization on the <see cref="Calendar"/>
|
||||
/// </summary>
|
||||
public enum CalendarDaysMode
|
||||
{
|
||||
/// <summary>
|
||||
/// A short version of the day is visible without time scale.
|
||||
/// </summary>
|
||||
Short,
|
||||
|
||||
/// <summary>
|
||||
/// The day is fully visible with time scale.
|
||||
/// </summary>
|
||||
Expanded
|
||||
}
|
||||
}
|
||||
51
WindowsFormsCalendar/Enums/CalendarItemImageAlign.cs
Normal file
51
WindowsFormsCalendar/Enums/CalendarItemImageAlign.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
Copyright 2012 Justin LeCheminant
|
||||
|
||||
This file is part of WindowsFormsCalendar.
|
||||
|
||||
indowsFormsCalendar is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
indowsFormsCalendar is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with indowsFormsCalendar. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Possible alignment for <see cref="CalendarItem"/> images
|
||||
/// </summary>
|
||||
public enum CalendarItemImageAlign
|
||||
{
|
||||
/// <summary>
|
||||
/// Image is drawn at north of text
|
||||
/// </summary>
|
||||
North,
|
||||
|
||||
/// <summary>
|
||||
/// Image is drawn at south of text
|
||||
/// </summary>
|
||||
South,
|
||||
|
||||
/// <summary>
|
||||
/// Image is drawn at east of text
|
||||
/// </summary>
|
||||
East,
|
||||
|
||||
/// <summary>
|
||||
/// Image is drawn at west of text
|
||||
/// </summary>
|
||||
West,
|
||||
}
|
||||
}
|
||||
52
WindowsFormsCalendar/Enums/CalendarScrollBars.cs
Normal file
52
WindowsFormsCalendar/Enums/CalendarScrollBars.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
Copyright 2012 Justin LeCheminant
|
||||
|
||||
This file is part of WindowsFormsCalendar.
|
||||
|
||||
indowsFormsCalendar is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
indowsFormsCalendar is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with indowsFormsCalendar. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Enumeration for the different type of scroll bars
|
||||
/// </summary>
|
||||
public enum CalendarScrollBars
|
||||
{
|
||||
/// <summary>
|
||||
/// No scroll bars
|
||||
/// </summary>
|
||||
None,
|
||||
|
||||
/// <summary>
|
||||
/// Vertical and Horizontal scrollbars
|
||||
/// </summary>
|
||||
Both,
|
||||
|
||||
/// <summary>
|
||||
/// Only vertical scrollbars
|
||||
/// </summary>
|
||||
Vertical,
|
||||
|
||||
/// <summary>
|
||||
/// Only horizontal scrollbars
|
||||
/// </summary>
|
||||
Horizontal
|
||||
}
|
||||
}
|
||||
57
WindowsFormsCalendar/Enums/CalendarState.cs
Normal file
57
WindowsFormsCalendar/Enums/CalendarState.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
Copyright 2012 Justin LeCheminant
|
||||
|
||||
This file is part of WindowsFormsCalendar.
|
||||
|
||||
indowsFormsCalendar is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
indowsFormsCalendar is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with indowsFormsCalendar. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Possible states of the calendar
|
||||
/// </summary>
|
||||
public enum CalendarState
|
||||
{
|
||||
/// <summary>
|
||||
/// Nothing happening
|
||||
/// </summary>
|
||||
Idle,
|
||||
|
||||
/// <summary>
|
||||
/// User is currently dragging on view to select a time range
|
||||
/// </summary>
|
||||
DraggingTimeSelection,
|
||||
|
||||
/// <summary>
|
||||
/// User is currently dragging an item among the view
|
||||
/// </summary>
|
||||
DraggingItem,
|
||||
|
||||
/// <summary>
|
||||
/// User is editing an item's Text
|
||||
/// </summary>
|
||||
EditingItemText,
|
||||
|
||||
/// <summary>
|
||||
/// User is currently resizing an item
|
||||
/// </summary>
|
||||
ResizingItem
|
||||
}
|
||||
}
|
||||
42
WindowsFormsCalendar/Enums/CalendarTimeFormat.cs
Normal file
42
WindowsFormsCalendar/Enums/CalendarTimeFormat.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
Copyright 2012 Justin LeCheminant
|
||||
|
||||
This file is part of WindowsFormsCalendar.
|
||||
|
||||
indowsFormsCalendar is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
indowsFormsCalendar is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with indowsFormsCalendar. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// An enumeration that represents the time format of the calendar
|
||||
/// </summary>
|
||||
public enum CalendarTimeFormat
|
||||
{
|
||||
/// <summary>
|
||||
/// A twelve hour clock
|
||||
/// </summary>
|
||||
TwelveHour,
|
||||
|
||||
/// <summary>
|
||||
/// A twenty four hour clock
|
||||
/// </summary>
|
||||
TwentyFourHour
|
||||
}
|
||||
}
|
||||
61
WindowsFormsCalendar/Enums/CalendarTimeScale.cs
Normal file
61
WindowsFormsCalendar/Enums/CalendarTimeScale.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
Copyright 2012 Justin LeCheminant
|
||||
|
||||
This file is part of WindowsFormsCalendar.
|
||||
|
||||
indowsFormsCalendar is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
indowsFormsCalendar is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with indowsFormsCalendar. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Enumerates possible timescales for <see cref="Calendar"/> control
|
||||
/// </summary>
|
||||
public enum CalendarTimeScale
|
||||
{
|
||||
/// <summary>
|
||||
/// Makes calendar show intervals of 60 minutes
|
||||
/// </summary>
|
||||
SixtyMinutes = 60,
|
||||
|
||||
/// <summary>
|
||||
/// Makes calendar show intervals of 30 minutes
|
||||
/// </summary>
|
||||
ThirtyMinutes = 30,
|
||||
|
||||
/// <summary>
|
||||
/// Makes calendar show intervals of 15 minutes
|
||||
/// </summary>
|
||||
FifteenMinutes = 15,
|
||||
|
||||
/// <summary>
|
||||
/// Makes calendar show intervals of 10 minutes
|
||||
/// </summary>
|
||||
TenMinutes = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Makes calendar show intervals of 6 minutes
|
||||
/// </summary>
|
||||
SixMinutes = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Makes calendar show intervals of 5 minutes
|
||||
/// </summary>
|
||||
FiveMinutes = 5
|
||||
}
|
||||
}
|
||||
64
WindowsFormsCalendar/Enums/Corners.cs
Normal file
64
WindowsFormsCalendar/Enums/Corners.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Possible corners to pass to the RoundRectangle method
|
||||
/// </summary>
|
||||
[Flags()]
|
||||
public enum Corners
|
||||
{
|
||||
/// <summary>
|
||||
/// No corners
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Northwest corner
|
||||
/// </summary>
|
||||
NorthWest = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Northeast corner
|
||||
/// </summary>
|
||||
NorthEast = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Southeast corner
|
||||
/// </summary>
|
||||
SouthEast = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Southwest corner
|
||||
/// </summary>
|
||||
SouthWest = 16,
|
||||
|
||||
/// <summary>
|
||||
/// All corners
|
||||
/// </summary>
|
||||
All = NorthWest | NorthEast | SouthEast | SouthWest,
|
||||
|
||||
/// <summary>
|
||||
/// North corner
|
||||
/// </summary>
|
||||
North = NorthWest | NorthEast,
|
||||
|
||||
/// <summary>
|
||||
/// South corner
|
||||
/// </summary>
|
||||
South = SouthEast | SouthWest,
|
||||
|
||||
/// <summary>
|
||||
/// East Corner
|
||||
/// </summary>
|
||||
East = NorthEast | SouthEast,
|
||||
|
||||
/// <summary>
|
||||
/// West corner
|
||||
/// </summary>
|
||||
West = NorthWest | SouthWest
|
||||
}
|
||||
}
|
||||
38
WindowsFormsCalendar/Enums/MonthViewSelection.cs
Normal file
38
WindowsFormsCalendar/Enums/MonthViewSelection.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace WindowsFormsCalendar
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the different kinds of selection in MonthView
|
||||
/// </summary>
|
||||
public enum MonthViewSelection
|
||||
{
|
||||
/// <summary>
|
||||
/// User can select whatever date available to mouse reach
|
||||
/// </summary>
|
||||
Manual,
|
||||
|
||||
/// <summary>
|
||||
/// Selection is limited to just one day
|
||||
/// </summary>
|
||||
Day,
|
||||
|
||||
/// <summary>
|
||||
/// Selecion is limited to <see cref="DayOfWeek"/> weekly ranges
|
||||
/// </summary>
|
||||
WorkWeek,
|
||||
|
||||
/// <summary>
|
||||
/// Selection is limited to a full week
|
||||
/// </summary>
|
||||
Week,
|
||||
|
||||
/// <summary>
|
||||
/// Selection is limited to a full month
|
||||
/// </summary>
|
||||
Month
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user