Better colors for file grid, small tweaks
This commit is contained in:
@@ -136,17 +136,36 @@ Public Class frmImportMain
|
||||
|
||||
#Region "Grid Events"
|
||||
Private Sub GridViewFiles_CustomDrawCell(sender As Object, e As Views.Base.RowCellCustomDrawEventArgs) Handles GridViewFiles.CustomDrawCell
|
||||
Dim oDocument As Document = GridViewFiles.GetRow(e.RowHandle)
|
||||
Try
|
||||
Dim oDocument As Document = GridViewFiles.GetRow(e.RowHandle)
|
||||
|
||||
If oDocument.HasErrors Then
|
||||
e.Appearance.Options.UseBackColor = True
|
||||
e.Appearance.BackColor = Color.LightCoral
|
||||
End If
|
||||
If oDocument.Equals(CurrentDocument) Then
|
||||
e.Appearance.Options.UseBackColor = True
|
||||
e.Appearance.BackColor = Color.LightYellow
|
||||
End If
|
||||
|
||||
If oDocument.Imported Then
|
||||
e.Appearance.Options.UseBackColor = True
|
||||
e.Appearance.BackColor = Color.LightGreen
|
||||
End If
|
||||
If oDocument.HasErrors Then
|
||||
e.Appearance.Options.UseBackColor = True
|
||||
e.Appearance.BackColor = Color.LightCoral
|
||||
End If
|
||||
|
||||
If oDocument.HasErrors And oDocument.Equals(CurrentDocument) Then
|
||||
e.Appearance.Options.UseBackColor = True
|
||||
e.Appearance.BackColor = Color.Coral
|
||||
End If
|
||||
|
||||
If oDocument.Imported Then
|
||||
e.Appearance.Options.UseBackColor = True
|
||||
e.Appearance.BackColor = Color.LightGreen
|
||||
End If
|
||||
|
||||
If oDocument.Imported And oDocument.Equals(CurrentDocument) Then
|
||||
e.Appearance.Options.UseBackColor = True
|
||||
e.Appearance.BackColor = Color.Green
|
||||
End If
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub GridView_CustomDrawCell(sender As Object, e As Views.Base.RowCellCustomDrawEventArgs)
|
||||
|
||||
Reference in New Issue
Block a user