Example #1
0
        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();
        }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
        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();
        }
Example #5
0
        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();
        }