/// <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="GroupBoxPanel" />
 /// class.
 /// </summary>
 /// <param name="size">The size.</param>
 /// <param name="location">The location.</param>
 /// <param name="parent">The parent.</param>
 public GroupBoxPanel(Size size, Point location, Control parent)
     : this()
 {
     Size     = SizeConfig.GetSize(size);
     Location = ControlConfig.GetLocation(location);
     Parent   = ControlConfig.GetParent(parent);
     Parent.Controls.Add(this);
 }
        /// <summary>
        /// Initializes a new instance of the
        /// <see cref="GroupBoxPanel" />
        /// class.
        /// </summary>
        /// <param name="size">The size.</param>
        /// <param name="parent">The parent.</param>
        public GroupBoxPanel(Size size, Control parent = null)
            : this()
        {
            Size = SizeConfig.GetSize(size);

            if (parent != null)
            {
                Parent = ControlConfig.GetParent(parent);
                Parent.Controls.Add(this);
            }
        }
예제 #4
0
        /// <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="DataGridPanel" />
        /// class.
        /// </summary>
        public DataGridPanel()
        {
            ForeColor = Color.Black;
            Font      = new Font("Roboto", 8, FontStyle.Bold);
            Margin    = ControlConfig.Margin;
            Padding   = ControlConfig.Padding;
            SizeConfig.GetSize(700, 400);
            Anchor = ControlConfig.GetAnchorStyle();
            EnableHeadersVisualStyles = false;
            BackColor       = ColorConfig.FormBackColorDark;
            BorderStyle     = BorderStyle.FixedSingle;
            BackgroundColor = BackColor;

            // Column Configuration
            AllowUserToOrderColumns                 = true;
            ColumnHeadersHeightSizeMode             = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            AutoSizeColumnsMode                     = DataGridViewAutoSizeColumnsMode.None;
            ColumnHeadersHeight                     = 35;
            ColumnHeadersBorderStyle                = DataGridViewHeaderBorderStyle.None;
            ColumnHeadersDefaultCellStyle.BackColor = Color.SteelBlue;
            ColumnHeadersDefaultCellStyle.ForeColor = Color.Black;
            ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
            ColumnHeadersDefaultCellStyle.Font      = new Font("Roboto", 11, FontStyle.Bold);
            RowHeadersWidthSizeMode                 = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            SelectionMode = DataGridViewSelectionMode.FullRowSelect;

            // Row Configuration
            RowHeadersWidth = 26;
            RowHeadersDefaultCellStyle.BackColor = ColorConfig.ForeColorGray;
            RowHeadersDefaultCellStyle.Font      = new Font("Roboto", 10, FontStyle.Bold);
            RowHeadersDefaultCellStyle.ForeColor = Color.Black;
            RowHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.BottomCenter;
            CellBorderStyle  = DataGridViewCellBorderStyle.None;
            AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.None;
            RowsDefaultCellStyle.BackColor          = Color.LightSteelBlue;
            RowsDefaultCellStyle.Font               = new Font("Roboto", 10);
            RowsDefaultCellStyle.ForeColor          = Color.Black;
            RowsDefaultCellStyle.SelectionBackColor = SystemColors.ControlLight;
            RowsDefaultCellStyle.SelectionForeColor = Color.Black;
            RowsDefaultCellStyle.Alignment          = DataGridViewContentAlignment.BottomCenter;

            // Epilog
            Visible = true;
            Enabled = true;
            ColumnHeaderMouseClick += OnRightClick;
        }
        /// <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;
        }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BudgetGridPanel"/> class.
 /// </summary>
 /// <param name="size">The size.</param>
 /// <param name="location">The location.</param>
 public BudgetGridPanel(Size size, Point location)
     : this()
 {
     Size     = SizeConfig.GetSize(size);
     Location = ControlConfig.GetLocation(location);
 }
예제 #8
0
        // Sets Starting Properties
        /// <summary>
        /// Initializes a new instance of the <see cref="ChartPanel"/> class.
        /// </summary>
        public ChartPanel()
        {
            //Basic Control Properties
            Size                   = SizeConfig.GetSize(600, 400);
            Location               = ControlConfig.GetLocation(1, 1);
            ShowLegend             = false;
            ShowToolbar            = false;
            ShowScrollBars         = false;
            EnableMouseRotation    = true;
            Padding                = ControlConfig.Padding;
            Margin                 = ControlConfig.Margin;
            Anchor                 = ControlConfig.GetAnchorStyle();
            AllowGapForEmptyPoints = true;
            AllowGradientPalette   = true;
            AllowUserEditStyles    = true;
            PrintColorMode         = ChartPrintColorMode.CheckPrinter;
            BackInterior           = new BrushInfo(ColorConfig.FormBackColorDark);
            BackColor              = ColorConfig.FormBackColorDark;

            ChartInterior = new BrushInfo(GradientStyle.PathRectangle, Color.LightGray,
                                          ColorConfig.FormBackColorDark);

            CalcRegions = true;

            //ChartArea Properties
            ChartArea.AdjustPlotAreaMargins = ChartSetMode.AutoSet;
            ChartArea.AutoScale             = true;
            ChartArea.BackInterior          = new BrushInfo(ColorConfig.FormBackColorDark);
            ChartArea.BorderWidth           = BorderConfig.Thin;
            ChartArea.BorderColor           = ColorConfig.ColorTransparent;
            ChartArea.BorderStyle           = BorderStyle.FixedSingle;
            ChartAreaMargins = new ChartMargins(3, 3, 3, 3);

            //ChartSeries Properties
            DropSeriesPoints     = false;
            AddRandomSeries      = true;
            Series3D             = true;
            SeriesHighlight      = true;
            SeriesHighlightIndex = -1;
            ShadowWidth          = 5;

            ShadowColor = new BrushInfo(GradientStyle.PathRectangle, ColorConfig.FormBackColorDark,
                                        Color.Silver);

            Depth            = 250;
            ElementsSpacing  = 10;
            ColumnDrawMode   = ChartColumnDrawMode.InDepthMode;
            ColumnFixedWidth = 20;

            //Chart Appearance Settings
            Palette              = ChartColorPalette.Metro;
            Skins                = Skins.None;
            RealMode3D           = true;
            Rotation             = 0.1f;
            SmoothingMode        = SmoothingMode.AntiAlias;
            Spacing              = 5;
            AutoHighlight        = true;
            SpacingBetweenPoints = 5;
            SpacingBetweenSeries = 10;
            Style3D              = true;
            TextAlignment        = AlignConfig.GetStringAlignment(StringAlignment.Center);
            TextPosition         = ChartTextPosition.Top;
            Tilt            = 5;
            ScrollPrecision = 100;
            RadarStyle      = ChartRadarAxisStyle.Polygon;

            //Chart Legend Settings;
            ShowLegend               = true;
            Legend.Font              = FontConfig.FontSizeSmall;
            Legend.ItemsSize         = SizeConfig.ImageSizeSmall;
            Legend.VisibleCheckBox   = true;
            Legend.BackInterior      = new BrushInfo(ColorConfig.FormBackColorDark);
            Legend.ItemsAlignment    = AlignConfig.GetStringAlignment(StringAlignment.Center);
            Legend.ItemsTextAligment = VerticalAlignment.Center;
            Legend.Orientation       = ChartOrientation.Vertical;
            Legend.FloatingAutoSize  = true;
            Legend.ShowSymbol        = true;
            Legend.ShowItemsShadow   = true;
            Legend.ShowBorder        = false;
            Legend.Visible           = true;
        }
예제 #9
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="ClockPanel" />
 /// class.
 /// </summary>
 /// <param name="size">The size.</param>
 /// <param name="location">The location.</param>
 public ClockPanel(Size size, Point location)
     : this()
 {
     Size     = SizeConfig.GetSize(size.Width, size.Height);
     Location = ControlConfig.GetLocation(location.X, location.Y);
 }
예제 #10
0
 /// <summary>
 /// Initializes a new instance of the
 /// <see cref="GroupBoxPanel" />
 /// class.
 /// </summary>
 /// <param name="size">The size.</param>
 /// <param name="location">The location.</param>
 public GroupBoxPanel(Size size, Point location)
     : this()
 {
     Size     = SizeConfig.GetSize(size);
     Location = ControlConfig.GetLocation(location);
 }