/// <summary> /// Initializes a new instance of the /// <see cref = "CalendarPanel"/> /// class. /// </summary> public CalendarPanel() { Size = SizeConfig.GetSize(530, 375); Location = ControlConfig.GetLocation(); Font = FontConfig.FontSizeSmall; Margin = ControlConfig.Margin; ForeColor = ColorConfig.ForeColorGray; BackColor = ColorConfig.FormBackColorDark; Dock = ControlConfig.GetDockStyle(); Anchor = ControlConfig.GetAnchorStyle(); Visible = true; Enabled = true; Style = VisualStyle.Office2010; Office2010Theme = Office2010Theme.Blue; Border3DStyle = Border3DStyle.Flat; BorderColor = Color.Transparent; BorderStyle = BorderStyle.FixedSingle; FirstDayOfWeek = Day.Monday; BottomHeight = 30; DayNamesColor = ColorConfig.FormBackColorDark; DayNamesFont = new Font("Roboto", 10, FontStyle.Bold); DaysFont = FontConfig.FontSizeMedium; DaysColor = ColorConfig.FormBackColorDark; DaysHeaderInterior = new BrushInfo(SystemColors.ControlDark); HeadForeColor = Color.White; HeaderHeight = 40; HeadGradient = false; HeaderFont = new Font("Roboto", 12, FontStyle.Bold); HeaderStartColor = Color.FromArgb(70, 70, 70); }
/// <summary> /// Initializes a new instance of the /// <see cref="ClockPanel" /> /// class. /// </summary> public ClockPanel() { BackColor = ColorConfig.FormBackColorDark; BorderColor = BackColor; ForeColor = ColorConfig.ForeColorGray; Font = FontConfig.FontSizeSmall; Margin = ControlConfig.Margin; Padding = ControlConfig.Padding; ClockShape = ClockShapes.Rectangle; ClockType = ClockTypes.Digital; DisplayDates = true; Now = DateTime.Now; ShowBorder = false; ShowClockFrame = false; ShowHourDesignator = true; ShowMinute = true; ShowSecondHand = true; HourHandColor = ColorConfig.ForeColorGray; MinuteColor = ColorConfig.ForeColorGray; SecondHandColor = ColorConfig.ForeColorGray; VisualStyle = ClockVisualStyle.None; Location = ControlConfig.GetLocation(); Dock = ControlConfig.GetDockStyle(); Anchor = ControlConfig.GetAnchorStyle(); Visible = true; Enabled = true; }
/// <summary> /// Initializes a new instance of the <see cref="BudgetGridPanel"/> class. /// </summary> public BudgetGridPanel() { // Basic Properties ForeColor = Color.White; BackColor = ColorConfig.FormBackColorDark; Font = new Font("Roboto", 8, FontStyle.Bold); Margin = new Padding(0); Padding = new Padding(0); Size = SizeConfig.GetSize(700, 400); Location = ControlConfig.GetLocation(); Anchor = ControlConfig.GetAnchorStyle(); Dock = ControlConfig.GetDockStyle(); Font = FontConfig.FontSizeSmall; Visible = true; Enabled = true; // Model Properties Model.Rows.DefaultSize = 22; Model.ActiveGridView.PdfExport = true; Model.Properties.ThemedHeader = false; Model.Properties.GridLineColor = Color.FromArgb(64, 64, 64); // Style Properties ThemesEnabled = true; ApplyVisualStyles = true; GridVisualStyles = GridVisualStyles.Office2010Black; EnableAddNew = true; EnableEdit = true; EnableRemove = true; AllowResizeToFit = true; ExcelLikeSelectionFrame = true; ExcelLikeAlignment = true; AlphaBlendSelectionColor = ColorConfig.BorderColorYellow; Properties.BackgroundColor = ColorConfig.FormBackColorDark; Properties.CenterHorizontal = true; Properties.CenterVertical = true; Properties.ColHeaders = true; Properties.RowHeaders = true; Properties.Buttons3D = true; // Table Style Properties TableStyle.Themed = true; TableStyle.WrapText = false; TableStyle.HorizontalAlignment = GridHorizontalAlignment.Center; TableStyle.AutoFit = AutoFitOptions.Both; TableStyle.Font.Facename = "consolas"; TableStyle.Font.Size = 8; }
/// <summary> /// Initializes a new instance of the /// <see cref="GroupBoxPanel" /> /// class. /// </summary> public GroupBoxPanel() { // Basic Property Configuration. Size = SizeConfig.GetSize(700, 431); Location = ControlConfig.GetLocation(); Anchor = ControlConfig.GetAnchorStyle(); Dock = ControlConfig.GetDockStyle(); Visible = true; Enabled = true; BackColor = ColorConfig.ControlInteriorColorDark; ForeColor = ColorConfig.ForeColorGray; Font = FontConfig.FontSizeSmall; Margin = ControlConfig.Margin; Padding = ControlConfig.Padding; // Border Configuration. Border.Type = ShapeTypes.Rounded; Border.Color = ColorConfig.BorderColorDark; Border.Thickness = BorderConfig.Thin; Border.HoverColor = ColorConfig.BorderColorYellow; Border.HoverVisible = true; // BackColor Configuration. BackColorState.Disabled = ColorConfig.FormBackColorDark; BackColorState.Enabled = ColorConfig.ControlInteriorColorDark; // Text Configuration. TextAlignment = AlignConfig.StringAlignCenter; TextLineAlignment = AlignConfig.StringAlignCenter; TitleBoxHeight = 30; // Style Configuration. BoxStyle = GroupBoxStyle.Default; SeparatorColor = ColorConfig.BorderColorDark; Separate = true; }