private void grdDetail_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     setRowNumber(sender, e);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 绘制行号
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewProjectTaskType_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemplo n.º 4
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void repSearchCodeFileNameView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemplo n.º 5
0
 /// <summary>
 /// 确定行号 
 /// </summary>
 private void gridViewQuotationBaseInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemplo n.º 6
0
 private void grvQuaTrinhKhenThuong_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 7
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void searchLookUpMaterialView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemplo n.º 8
0
 private void gvStockProfit_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     gvStockProfit.DrawRowIndicator(e);
 }
Exemplo n.º 9
0
 private void gvPosition_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     gvPosition.DrawRowIndicator(e);
 }
Exemplo n.º 10
0
 private void bandedGridView_MeghdariVRiali_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
     }
 }
Exemplo n.º 11
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewStnModuleListInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemplo n.º 12
0
 private void grvQuaTrinhBoNhiemChucVu_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 13
0
        private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
        {
            bool m_isUpsideDown = true;

            if (e.RowHandle >= 0)
            {
                try
                {
                    switch (m_viewtype)
                    {
                    case InjectionType.Normal:

                        if (fuel_map_y_axis.Length > 0)
                        {
                            if (fuel_map_y_axis.Length > e.RowHandle)
                            {
                                string yvalue = fuel_map_y_axis.GetValue((fuel_map_y_axis.Length - 1) - e.RowHandle).ToString();
                                if (!m_isUpsideDown)
                                {
                                    // dan andere waarde nemen
                                    yvalue = fuel_map_y_axis.GetValue(e.RowHandle).ToString();
                                }

                                Rectangle r = new Rectangle(e.Bounds.X + 1, e.Bounds.Y + 1, e.Bounds.Width - 2, e.Bounds.Height - 2);
                                e.Graphics.DrawRectangle(Pens.LightSteelBlue, r);
                                System.Drawing.Drawing2D.LinearGradientBrush gb = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, e.Appearance.BackColor2, e.Appearance.BackColor2, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
                                e.Graphics.FillRectangle(gb, e.Bounds);
                                e.Graphics.DrawString(yvalue, this.Font, Brushes.MidnightBlue, new PointF(e.Bounds.X + 4, e.Bounds.Y + 1 + (e.Bounds.Height - 12) / 2));
                                e.Handled = true;
                            }
                        }
                        break;

                    case InjectionType.Knocking:

                        if (fuel_knock_map_y_axis.Length > 0)
                        {
                            if (fuel_knock_map_y_axis.Length > e.RowHandle)
                            {
                                string yvalue = fuel_knock_map_y_axis.GetValue((fuel_knock_map_y_axis.Length - 1) - e.RowHandle).ToString();
                                if (!m_isUpsideDown)
                                {
                                    // dan andere waarde nemen
                                    yvalue = fuel_knock_map_y_axis.GetValue(e.RowHandle).ToString();
                                }

                                Rectangle r = new Rectangle(e.Bounds.X + 1, e.Bounds.Y + 1, e.Bounds.Width - 2, e.Bounds.Height - 2);
                                e.Graphics.DrawRectangle(Pens.LightSteelBlue, r);
                                System.Drawing.Drawing2D.LinearGradientBrush gb = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, e.Appearance.BackColor2, e.Appearance.BackColor2, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
                                e.Graphics.FillRectangle(gb, e.Bounds);
                                e.Graphics.DrawString(yvalue, this.Font, Brushes.MidnightBlue, new PointF(e.Bounds.X + 4, e.Bounds.Y + 1 + (e.Bounds.Height - 12) / 2));
                                e.Handled = true;
                            }
                        }
                        break;

                    case InjectionType.Idle:

                        if (idle_fuel_y_axis.Length > 0)
                        {
                            if (idle_fuel_y_axis.Length > e.RowHandle)
                            {
                                string yvalue = idle_fuel_y_axis.GetValue((idle_fuel_y_axis.Length - 1) - e.RowHandle).ToString();
                                if (!m_isUpsideDown)
                                {
                                    // dan andere waarde nemen
                                    yvalue = idle_fuel_y_axis.GetValue(e.RowHandle).ToString();
                                }

                                Rectangle r = new Rectangle(e.Bounds.X + 1, e.Bounds.Y + 1, e.Bounds.Width - 2, e.Bounds.Height - 2);
                                e.Graphics.DrawRectangle(Pens.LightSteelBlue, r);
                                System.Drawing.Drawing2D.LinearGradientBrush gb = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, e.Appearance.BackColor2, e.Appearance.BackColor2, System.Drawing.Drawing2D.LinearGradientMode.Horizontal);
                                e.Graphics.FillRectangle(gb, e.Bounds);
                                e.Graphics.DrawString(yvalue, this.Font, Brushes.MidnightBlue, new PointF(e.Bounds.X + 4, e.Bounds.Y + 1 + (e.Bounds.Height - 12) / 2));
                                e.Handled = true;
                            }
                        }
                        break;
                    }
                }
                catch (Exception E)
                {
                    Console.WriteLine(E.Message);
                }
            }
        }
Exemplo n.º 14
0
 private void gridViewDiagnosisDestination_CustomDrawRowIndicator_1(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     try
     {
         DS_Common.AutoIndex(e);
     }
     catch (Exception ex)
     {
         DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
     }
 }
Exemplo n.º 15
0
 private void gridView1_BenhNhanKhamTrongNgay_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     function.CustomDrawRowIndicator(sender, e);
 }
Exemplo n.º 16
0
 private void grvQuaTrinhThamGiaTCCTXH_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 17
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void searchParentMenuNameView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
 private void grvTrinhDoQuanLyHCNN_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
 private void grvXepLoaiChungChi_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 20
0
 private void gridViewInpatientFail_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     DrectSoft.Common.DS_Common.AutoIndex(e);
 }
Exemplo n.º 21
0
 private void gridView_DanhSachBenhNhan_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     function.CustomDrawRowIndicator(sender, e);
 }
Exemplo n.º 22
0
 private void gridViewOrderStatusHistory_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     if (e.RowHandle >= 0)
     {
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
     }
 }
Exemplo n.º 23
0
 private void gvProcess_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     //if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     //    e.Info.DisplayText = (e.RowHandle + 1).ToString();
 }
Exemplo n.º 24
0
 private void grvSinhVien_QuanHeGiaDinh_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 25
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewSettlementHead_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemplo n.º 26
0
 private void bgvBangLuong_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 27
0
 /// <summary>
 /// 确定行号
 /// </summary>
 private void gridViewRegisterSchedule_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ControlHandler.GridView_CustomDrawRowIndicator(e);
 }
Exemplo n.º 28
0
 private void grvDanhSachSinhVien_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 29
0
 private void grvMonHoc_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     ShowIndicator(e);
 }
Exemplo n.º 30
0
 private void gridViewSkip_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
 {
     (sender as DevExpress.XtraGrid.Views.Grid.GridView).DrawRowIndicator(e);
 }