Ejemplo n.º 1
0
        public ABCComment( )
        {
            InitializeComponent();

            this.gridView.Appearance.Empty.BackColor            = ABCPresentHelper.GetSkinBackColor();
            this.gridView.Appearance.Empty.Options.UseBackColor = true;
            this.gridView.Appearance.Row.BackColor            = ABCPresentHelper.GetSkinBackColor();
            this.gridView.Appearance.Row.Options.UseBackColor = true;

            this.gridView.OptionsView.RowAutoHeight = true;
            this.gridView.FocusRectStyle            = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.None;
            this.gridView.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.gridView.OptionsSelection.EnableAppearanceFocusedRow  = false;
            this.gridView.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(gridContent_CustomDrawCell);
            this.gridView.Click          += new EventHandler(gridView_Click);
            this.gridView.MouseMove      += new MouseEventHandler(gridView_MouseMove);
            this.gridView.RowCellStyle   += new RowCellStyleEventHandler(gridView_RowCellStyle);
            this.gridView.OptionsBehavior.AllowPartialRedrawOnScrolling = true;
            this.colTime.OptionsColumn.AllowEdit     = false;
            this.colEmployee.OptionsColumn.AllowEdit = false;
            this.colComment.OptionsColumn.AllowEdit  = true;
            this.colComment.OptionsColumn.ReadOnly   = true;

            this.colEmployee.AppearanceCell.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Top;
            this.colTime.AppearanceCell.TextOptions.VAlignment     = DevExpress.Utils.VertAlignment.Top;
            this.colComment.AppearanceCell.TextOptions.VAlignment  = DevExpress.Utils.VertAlignment.Top;


            tabPanel      = new ABCTagObject();
            tabPanel.Dock = DockStyle.Fill;
            tagPanelContainer.Controls.Add(tabPanel);
        }
Ejemplo n.º 2
0
 public ABCPanelControl( )
 {
     this.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.BackColor   = ABCPresentHelper.GetSkinBackColor();
     //this.Appearance.BorderColor=Color.Transparent;
     //this.Appearance.Options.UseBorderColor=true;
 }
Ejemplo n.º 3
0
        public virtual void InitSeries( )
        {
            this.ArgumentScaleType         = DevExpress.XtraCharts.ScaleType.Qualitative;
            seriesLabel.Antialiasing       = true;
            seriesLabel.BackColor          = ABCPresentHelper.GetSkinBackColor();
            seriesLabel.Border.Visible     = false;
            seriesLabel.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Empty;
            seriesLabel.LineColor          = ABCPresentHelper.GetSkinForeColor();//System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 64 ) ) ) ) , ( (int)( ( (byte)( 64 ) ) ) ) , ( (int)( ( (byte)( 64 ) ) ) ) );
            seriesLabel.LineVisible        = true;

            pointOptions.PointView = DevExpress.XtraCharts.PointView.Values;
            pointOptions.ValueNumericOptions.Format = DevExpress.XtraCharts.NumericFormat.General;
            seriesLabel.PointOptions = pointOptions;

            seriesLabel.ResolveOverlappingMode = DevExpress.XtraCharts.ResolveOverlappingMode.Default;
            seriesLabel.TextColor             = ABCPresentHelper.GetSkinForeColor();//System.Drawing.Color.FromArgb( ( (int)( ( (byte)( 0 ) ) ) ) , ( (int)( ( (byte)( 0 ) ) ) ) , ( (int)( ( (byte)( 128 ) ) ) ) );
            this.Label                        = seriesLabel;
            this.Name                         = "Biểu đồ 1";
            this.View                         = seriesView;
            this.LegendPointOptions.PointView = PointView.Argument;
            ChartParent.Series.Add(this);
            ColorEach = true;

            if (this.seriesView is SideBySideBarSeriesView)
            {
                (this.seriesView as SideBySideBarSeriesView).Shadow.Visible = true;
                (this.seriesView as SideBySideBarSeriesView).Shadow.Size    = 2;
                ((BarSeriesLabel)Label).ShowForZeroValues = false;
            }
            if (this.seriesView is LineSeriesView)
            {
                (this.seriesView as LineSeriesView).Shadow.Visible            = false;
                (this.seriesView as LineSeriesView).LineMarkerOptions.Visible = false;
            }
        }