C# (CSharp) FarsiLibrary.Win.Controls Namespace

Classes

Name Description
DataGridViewFADateTimePickerCell
DataGridViewFADateTimePickerColumn
DataGridViewFADateTimePickerEditor
FAContainerComboBox
FADatePicker
FADatePickerStrip
FADayView
FAMessageBox An extended MessageBox with lot of customizing capabilities.
FAMessageBoxButton Structure used to represent buttons of the FAMessageBox control.
FAMessageBoxForm An advanced MessageBox that supports customizations like Font, Icon, Buttons and Saved Responses
FAMessageBoxManager Manages various instances of FAMessageBox controls. This manager class, manages the saved responses of all FAMessageBox controls.
FAMonthView
FAMonthView.ActRect
FAMonthViewContainer
FAMultiView
FaMonthViewStrip
NamespaceDoc FarsiLibrary project, provides UI Controls to work with multiple different calendars. UI Controls currently include FAMonthView control which is a month view of a calendar, FADatePicker control that acts as a date picker control that shows the FAMonthView control as the calendar view, Controls support three themes. On WindowsXP or above you can use ThemeTypes.WindowsXP, ThemeTypes.Office2003 and ThemeTypes.Office2000, but on Windows 2000, you can only use the latter. Also you should enable themes on your WindowsXP OS, and set the Application.EnableVisualStyles property to true for the themes to be displayed : public static void Main() { Application.EnableVisualStyles(); // To Support XP and Office2003 themes. Application.Run(new MainForm()); } UI Controls display MonthNames, Years, Weekday, Days and Numeric values bases on current thread's System.Globalization.CultureInfo. If you want to display the control in a different culture, you'll have to set cutrrent thread's Culture properties like this : public static void Main() { Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fa-IR"); Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture; Application.Run(new MainForm()); } Currently three cultures are implemented : FA-IR (Farsi) for Persian culture that is used in Iran and some other countries, AR-SA (Arabic) for arabic culture that is used in arab countries, and an Invariant Culture that is used to display control in other cultures. By default, (also when the user drops a control on a form in VS.NET) control draws itself based on the Regional Settings in control panel. In Cultures that has Right-To-Left reading form (i.e. Arabic and Farsi), control draws itself in a RTL manner (Months, Days and WeekDay reading form), otherwise in Left-To-Right form. Remember to set both Thread.CurrentUICulture and Thread.CurrentCulture values for the control to be displayed properly.