private void TransferOwnership() { if (user.Scopes.Contains(TokenScope.TRANSFER)) { TransferOwnershipWindow window = new TransferOwnershipWindow(); window.ShowDialog(); return; } GetResolutionWindow AuthWindow = new GetResolutionWindow(user, TokenScope.TRANSFER); AuthWindow.ShowDialog(); }
private void OpenAddFinesWindow() { if (user.Scopes.Contains(TokenScope.FINE)) { AddFinesWindow window = new AddFinesWindow(user); window.ShowDialog(); return; } GetResolutionWindow AuthWindow = new GetResolutionWindow(user, TokenScope.FINE); AuthWindow.ShowDialog(); }
private void OpenAddTaxWindow() { if (this.user.Scopes.Contains(TokenScope.TAX)) { AddTaxWindow window = new AddTaxWindow(user); window.ShowDialog(); return; } GetResolutionWindow AuthWindow = new GetResolutionWindow(user, TokenScope.TAX); AuthWindow.ShowDialog(); }
private void OpenVehicleRegistrationWindow() { if (user.Scopes.Contains(TokenScope.VEHICLE_REGISTRATION)) { RegisterVehicleWindow window = new RegisterVehicleWindow(); window.ShowDialog(); return; } GetResolutionWindow AuthWindow = new GetResolutionWindow(user, TokenScope.VEHICLE_REGISTRATION); AuthWindow.ShowDialog(); }
private void OpenTaxInformationWindow() { if (user.Scopes.Contains(TokenScope.TAX)) { TaxInformationWindow window = new TaxInformationWindow(); window.ShowDialog(); return; } GetResolutionWindow AuthWindow = new GetResolutionWindow(user, TokenScope.TAX); AuthWindow.ShowDialog(); }