C# Class FarsiLibrary.Win.Controls.FAMonthView

Inheritance: FarsiLibrary.Win.BaseClasses.BaseDateControl
Mostra file Open project: HEskandari/FarsiLibrary Class Usage Examples

Private Properties

Property Type Description
AddActiveRect void
AddActiveRect void
DrawDayValue void
FindActiveRectByPoint ActRect
FindActiveRectByTag ActRect
GetVisibleButtonCount int
OnDrawBody void
OnDrawBorder void
OnDrawFooter void
OnDrawFooterButtons void
OnDrawHeader void
OnDrawMonthHeader void
OnDrawYearHeader void
OnEnterPressed void
OnInternalMouseClick void
OnInternalMouseDown void
OnLocalizerChanged void
OnRecalculateRequired void
OnRectangleClick void
OnSelectionClick void
OnSelectionCollectionChanged void
RecalculateSelectionDown void
RecalculateSelectionLeft void
RecalculateSelectionRight void
RecalculateSelectionUp void
ResetActiveRectanglesState void
ResetAllRectangleStates void
ResetFocusedRectangleState void
ResetSelectedRectangleState void
SetFocusOnNextControl void
SetFocusOnPrevControl void

Public Methods

Method Description
FAMonthView ( ) : System

Creates a new instance of FAMonthView for normal mode usage.

FAMonthView ( bool popupMode ) : System

Creates a new instance of FAMonthView class. Initiated control could be uses in PopupMode or Normal mode, depending on the use.

HitTest ( Point location ) : FocusedPart

Returns the part of the control that is tested.

ScrollDaysDown ( ) : void

Scrolls days in the view to the Down.

ScrollDaysLeft ( ) : void

Scrolls days in the view to the Left.

ScrollDaysRight ( ) : void

Scrolls days in the view to the Right.

ScrollDaysUp ( ) : void

Scrolls days in the view to the Up.

SetNoneDay ( ) : void

Clears the selection of the control. Also clears any selected date in MultiSelect mode.

SetTodayDay ( ) : void

Sets the selection value to Today.

ShouldSerializeAnchor ( ) : bool

Determines to serialize Anchor property or not

ShouldSerializeSelectedDateRange ( ) : bool

Determines to serialize SelectedDateRange property or not.

ShouldSerializeSize ( ) : bool

Determines to serialize Size property or not.

ToNextMonth ( ) : void

Changes the Month value to the Next Month.

ToNextYear ( ) : void

Changes the Year value to the Next Year.

ToPrevMonth ( ) : void

Changes the Month value to the Previous Month.

ToPrevYear ( ) : void

Changes the Year value to the Previous Year.

Protected Methods

Method Description
OnButtonClicked ( CalendarButtonClickedEventArgs e ) : void
OnDoubleClick ( EventArgs e ) : void
OnDrawCurrentDay ( CustomDrawDayEventArgs e ) : void
OnGotFocus ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnLostFocus ( EventArgs e ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseEnter ( EventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs pe ) : void
OnPaintBackground ( PaintEventArgs pevent ) : void
OnResize ( EventArgs e ) : void

Executed when control is resized.

OnSelectedDateRangeChanged ( SelectedDateRangeChangedEventArgs e ) : void
OnSelectedDateTimeChanged ( EventArgs e ) : void

Private Methods

Method Description
AddActiveRect ( Rectangle rc, FocusedPart action ) : void
AddActiveRect ( Rectangle rc, FocusedPart action, object tag ) : void
DrawDayValue ( Graphics g, int day, Rectangle rcHead ) : void
FindActiveRectByPoint ( Point pnt ) : ActRect
FindActiveRectByTag ( object tag ) : ActRect
GetVisibleButtonCount ( ) : int
OnDrawBody ( PaintEventArgs pevent ) : void
OnDrawBorder ( PaintEventArgs e ) : void
OnDrawFooter ( PaintEventArgs pevent ) : void
OnDrawFooterButtons ( PaintEventArgs pevent ) : void
OnDrawHeader ( PaintEventArgs pevent ) : void
OnDrawMonthHeader ( PaintEventArgs pevent ) : void
OnDrawYearHeader ( PaintEventArgs pevent ) : void
OnEnterPressed ( ) : void
OnInternalMouseClick ( Point location ) : void
OnInternalMouseDown ( Point mousePoint ) : void
OnLocalizerChanged ( object sender, EventArgs e ) : void
OnRecalculateRequired ( ) : void
OnRectangleClick ( ActRect rc ) : void
OnSelectionClick ( ActRect rc ) : void
OnSelectionCollectionChanged ( object sender, CollectionChangedEventArgs e ) : void
RecalculateSelectionDown ( ) : void
RecalculateSelectionLeft ( ) : void
RecalculateSelectionRight ( ) : void
RecalculateSelectionUp ( ) : void
ResetActiveRectanglesState ( ) : void
ResetAllRectangleStates ( ) : void
ResetFocusedRectangleState ( ) : void
ResetSelectedRectangleState ( ) : void
SetFocusOnNextControl ( ) : void
SetFocusOnPrevControl ( ) : void

Method Details

FAMonthView() public method

Creates a new instance of FAMonthView for normal mode usage.
public FAMonthView ( ) : System
return System

FAMonthView() public method

Creates a new instance of FAMonthView class. Initiated control could be uses in PopupMode or Normal mode, depending on the use.
public FAMonthView ( bool popupMode ) : System
popupMode bool
return System

HitTest() public method

Returns the part of the control that is tested.
public HitTest ( Point location ) : FocusedPart
location Point
return FocusedPart

OnButtonClicked() protected method

protected OnButtonClicked ( CalendarButtonClickedEventArgs e ) : void
e CalendarButtonClickedEventArgs
return void

OnDoubleClick() protected method

protected OnDoubleClick ( EventArgs e ) : void
e EventArgs
return void

OnDrawCurrentDay() protected method

protected OnDrawCurrentDay ( CustomDrawDayEventArgs e ) : void
e CustomDrawDayEventArgs
return void

OnGotFocus() protected method

protected OnGotFocus ( EventArgs e ) : void
e EventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnLostFocus() protected method

protected OnLostFocus ( EventArgs e ) : void
e EventArgs
return void

OnMouseClick() protected method

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseEnter() protected method

protected OnMouseEnter ( EventArgs e ) : void
e EventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs
return void

OnResize() protected method

Executed when control is resized.
protected OnResize ( EventArgs e ) : void
e EventArgs
return void

OnSelectedDateRangeChanged() protected method

protected OnSelectedDateRangeChanged ( SelectedDateRangeChangedEventArgs e ) : void
e SelectedDateRangeChangedEventArgs
return void

OnSelectedDateTimeChanged() protected method

protected OnSelectedDateTimeChanged ( EventArgs e ) : void
e EventArgs
return void

ScrollDaysDown() public method

Scrolls days in the view to the Down.
public ScrollDaysDown ( ) : void
return void

ScrollDaysLeft() public method

Scrolls days in the view to the Left.
public ScrollDaysLeft ( ) : void
return void

ScrollDaysRight() public method

Scrolls days in the view to the Right.
public ScrollDaysRight ( ) : void
return void

ScrollDaysUp() public method

Scrolls days in the view to the Up.
public ScrollDaysUp ( ) : void
return void

SetNoneDay() public method

Clears the selection of the control. Also clears any selected date in MultiSelect mode.
public SetNoneDay ( ) : void
return void

SetTodayDay() public method

Sets the selection value to Today.
public SetTodayDay ( ) : void
return void

ShouldSerializeAnchor() public method

Determines to serialize Anchor property or not
public ShouldSerializeAnchor ( ) : bool
return bool

ShouldSerializeSelectedDateRange() public method

Determines to serialize SelectedDateRange property or not.
public ShouldSerializeSelectedDateRange ( ) : bool
return bool

ShouldSerializeSize() public method

Determines to serialize Size property or not.
public ShouldSerializeSize ( ) : bool
return bool

ToNextMonth() public method

Changes the Month value to the Next Month.
public ToNextMonth ( ) : void
return void

ToNextYear() public method

Changes the Year value to the Next Year.
public ToNextYear ( ) : void
return void

ToPrevMonth() public method

Changes the Month value to the Previous Month.
public ToPrevMonth ( ) : void
return void

ToPrevYear() public method

Changes the Year value to the Previous Year.
public ToPrevYear ( ) : void
return void