private void grdDetail_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { setRowNumber(sender, e); }
/// <summary> /// 绘制行号 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridView1_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { }
/// <summary> /// 确定行号 /// </summary> private void gridViewProjectTaskType_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ControlHandler.GridView_CustomDrawRowIndicator(e); }
/// <summary> /// 确定行号 /// </summary> private void repSearchCodeFileNameView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ControlHandler.GridView_CustomDrawRowIndicator(e); }
/// <summary> /// 确定行号 /// </summary> private void gridViewQuotationBaseInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ControlHandler.GridView_CustomDrawRowIndicator(e); }
private void grvQuaTrinhKhenThuong_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ShowIndicator(e); }
/// <summary> /// 确定行号 /// </summary> private void searchLookUpMaterialView_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ControlHandler.GridView_CustomDrawRowIndicator(e); }
private void gvStockProfit_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { gvStockProfit.DrawRowIndicator(e); }
private void gvPosition_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { gvPosition.DrawRowIndicator(e); }
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(); } }
/// <summary> /// 确定行号 /// </summary> private void gridViewStnModuleListInfo_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ControlHandler.GridView_CustomDrawRowIndicator(e); }
private void grvQuaTrinhBoNhiemChucVu_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ShowIndicator(e); }
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); } } }
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); } }
private void gridView1_BenhNhanKhamTrongNgay_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { function.CustomDrawRowIndicator(sender, e); }
private void grvQuaTrinhThamGiaTCCTXH_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ShowIndicator(e); }
/// <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); }
private void gridViewInpatientFail_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { DrectSoft.Common.DS_Common.AutoIndex(e); }
private void gridView_DanhSachBenhNhan_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { function.CustomDrawRowIndicator(sender, e); }
private void gridViewOrderStatusHistory_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { if (e.RowHandle >= 0) { e.Info.DisplayText = (e.RowHandle + 1).ToString(); } }
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(); }
private void grvSinhVien_QuanHeGiaDinh_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ShowIndicator(e); }
/// <summary> /// 确定行号 /// </summary> private void gridViewSettlementHead_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ControlHandler.GridView_CustomDrawRowIndicator(e); }
private void bgvBangLuong_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ShowIndicator(e); }
/// <summary> /// 确定行号 /// </summary> private void gridViewRegisterSchedule_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ControlHandler.GridView_CustomDrawRowIndicator(e); }
private void grvDanhSachSinhVien_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ShowIndicator(e); }
private void grvMonHoc_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { ShowIndicator(e); }
private void gridViewSkip_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e) { (sender as DevExpress.XtraGrid.Views.Grid.GridView).DrawRowIndicator(e); }