+5
-5
@@ -37,7 +37,7 @@ Public Class GLAccountsVC
|
||||
Frame.GetController(Of WinModificationsController).ModificationsHandlingMode = DevExpress.ExpressApp.SystemModule.ModificationsHandlingMode.AutoRollback
|
||||
End If
|
||||
If View.Id = "GLHeader_GLRows_ListView_Accounts" Then
|
||||
Frame.GetController(Of ToolbarVisibilityController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ToolbarVisibilityController)?.Active.SetItemValue("", False)
|
||||
Frame.GetController(Of ToolbarVisibilityController).SetToolbarVisibility(False)
|
||||
End If
|
||||
AddHandler DoWork, AddressOf _WaitFormClass.DoWork
|
||||
@@ -49,7 +49,7 @@ Public Class GLAccountsVC
|
||||
Protected Overrides Sub OnDeactivated()
|
||||
MyBase.OnDeactivated()
|
||||
If View.Id = "GLHeader_GLRows_ListView_Accounts" Then
|
||||
Frame.GetController(Of ToolbarVisibilityController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of ToolbarVisibilityController)?.Active.SetItemValue("", True)
|
||||
Frame.GetController(Of ToolbarVisibilityController).SetToolbarVisibility(True)
|
||||
End If
|
||||
RemoveHandler DoWork, AddressOf _WaitFormClass.DoWork
|
||||
@@ -72,13 +72,13 @@ Public Class GLAccountsVC
|
||||
Dim _GLAccounts As GLAccounts = TryCast(View.SelectedObjects(0), GLAccounts)
|
||||
If _GLAccounts Is Nothing Then
|
||||
Else
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController).Active.SetItemValue("", True)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController)?.Active.SetItemValue("", True)
|
||||
If _GLAccounts.IsEditable = False Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
End If
|
||||
End If
|
||||
ElseIf View.SelectedObjects.Count > 1 Then
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController).Active.SetItemValue("", False)
|
||||
Frame.GetController(Of DevExpress.ExpressApp.SystemModule.DeleteObjectsViewController)?.Active.SetItemValue("", False)
|
||||
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user