/// <summary> /// The default constructor Inheriteda and implemented by all Child classes /// </summary> /// <param name="_service"></param> protected BaseModalsVM(IAbstractService <T> _service, IDinkeyDongleService _dongleService) { service = _service; dongleService = _dongleService; ProcessCommand = new RelayCommand(async() => await Process(), () => CanProcess); CloseCommand = new RelayCommand(Close); }
public RequestsVM(IDinkeyDongleService _dongleService) { ChangeStyle("personalization"); dongleService = _dongleService; NavigationCommand = new RelayCommand <object>(Navigate); }
/// <summary> /// This Class' implementation of the Base Class' constructor /// </summary> /// <param name="_cardTypeService"></param> /// <param name="_cardVendorService"></param> public CardRegistrationVM(ICardService _cardService, ICardTypeService _cardTypeService, ICardVendorService _cardVendorService, IDinkeyDongleService _dongleService) : base(_service: _cardService, _dongleService: _dongleService) { cardTypeService = _cardTypeService; cardVendorService = _cardVendorService; LoadAll().ConfigureAwait(false); }
public CardholdersVM(ICardholderService _cardholderService, IEmployeeService _empService, ITenantService _tenantService, IDinkeyDongleService _dongleService) : base(_service: _cardholderService, _dongleService: _dongleService) { empService = _empService; tenantService = _tenantService; AddCardholderCommand = new RelayCommand(OpenCardholderRegistrationPage); }
protected BaseSettingsVM(ISettingsService _settingsService, IDinkeyDongleService _dongleService) { dongleService = _dongleService; settingsService = _settingsService; CloseModalCommand = new RelayCommand(CloseModal); ProcessCommand = new RelayCommand <object>(Process, (object obj) => CanProcess); AppSettings = LoadAppSettings(); LoadSetting(); }
/// <summary> /// Default constructor for this class and should be implemented /// by all derived classes /// </summary> /// <param name="_service"> /// the default Service class that manages the Type inferred from the Argument passed to the /// class /// </param> protected CollectionsVMWithOneCommand(IAbstractService <T> _service, IDinkeyDongleService _dongleService) { ChangeStyle(string.Empty); service = _service; dongleService = _dongleService; ProcessCommand = new RelayCommand(Process); LoadAll().ConfigureAwait(false); }
public LoginViewModel(IDinkeyDongleService _dongleService, ISettingsService _settingsService) { dongleService = _dongleService; settingsService = _settingsService; try { authService = SimpleIoc.Default.GetInstance <IAuthenticationService>(); } catch { const string message = "No Server Settings Were found in the System \r\n Do you want to Create These Settings Now?"; const string caption = "Attention"; var result = MessageBox.Show(message, caption, MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { OpenServerSettings(); } else { Application.Current.Shutdown(); } } LoadSettings(); // CheckPCValidity(); Toaster.Refresh(); LoginCommand = new RelayCommand <object>(async(object obj) => await Login(obj), (obj) => CanLogin); NextPageCommand = new RelayCommand <object>(OpenNextPage); toastManager = Toaster.Instance; MessengerInstance.Register <UIElement>(this, ChangeModal); MessengerInstance.Register <ApplicationSettings>(this, UpdateServerSettings); }
public MainWindowVM(ISettingsService _settingsService, IDinkeyDongleService _dongleService) { settingsService = _settingsService; dongleService = _dongleService; Toaster.Refresh(); if (Application.Current?.Properties?["loggedInUser"] != null) { loggedInUser = Application.Current.Properties["loggedInUser"] as User; } MessengerInstance.Register <UIElement>(this, ChangeModal); MessengerInstance.Register <CardholderDetails>(this, OpenCardholderDetails); LogOutCommand = new RelayCommand(LogOut); NavigationCommand = new RelayCommand <object>(Navigate); ChangePasswordCommand = new RelayCommand(ChangePassword); OpenServerSettingsCommand = new RelayCommand(OpenServerSettings); toastManager = Toaster.Instance; }
public CardsListVM(ICardService _service, IDinkeyDongleService _dongleService) : base(_service: _service, _dongleService: _dongleService) { }
/// <summary> /// This Class' Implementation of the Base class' constructor /// </summary> /// <param name="_service"> /// The default Service class that manages objects of the type /// inferred from the Argument passed to the base class /// </param> public ReplaceCardRequestVM(ICardReplacementService _service, IDinkeyDongleService _dongleService) : base(_service: _service, _dongleService: _dongleService) { }
/// <summary> /// This Class' Implementation of the Base class' constructor /// </summary> /// <param name="_service"> /// The default Service class that manages objects of the type /// inferred from the Argument passed to the base class /// </param> public PersonalizationRequestVM(IPersonalizationRequestService _service, IDinkeyDongleService _dongleService) : base(_service: _service, _dongleService: _dongleService) { }
public CardReplacementVM(ICardReplacementService service, IDinkeyDongleService _dongleService) : base(_service: service, _dongleService: _dongleService) { }
public CardholderDetailsVM(ICardholderService service, IEmployeeService _empService, ITenantService _tenantService, ICardTypeService _cardTypeService, IDinkeyDongleService _dongleService) : base(_service: service, _dongleService: _dongleService) { empService = _empService; tenantService = _tenantService; cardTypeService = _cardTypeService; AddCardVisibility = true; AddCardCommand = new RelayCommand(OpenAddCardModal); AddVehicleCommand = new RelayCommand(OpenAddVehicleModal); AddParkingCommand = new RelayCommand(OpenAddParkingModal); AddBuildingCommand = new RelayCommand(OpenAddBuildingModal); SupplementaryCommand = new RelayCommand(ProcessSupplementary); }
public AddCarParkVM(ICarParkService service, IDinkeyDongleService _dongleService) : base(_service: service, _dongleService: _dongleService) { }
/// <summary> /// The default constructor inherited from the base class and should be implemented /// by all derived classes /// </summary> /// <param name="_service"> /// the default Service class that manages the Type inferred from the Argument passed to the /// class /// </param> protected CollectionsVMWithTwoCommands(IAbstractService <T> _service, IDinkeyDongleService _dongleService) : base(_service: _service, _dongleService: _dongleService) { FilterCollectionsCommand = new RelayCommand <object>(FilterCollections); }
/// <summary> /// This Class' Implementation of the Base class' constructor /// </summary> /// <param name="_service"> /// The default Service class that manages objects of the type /// inferred from the Argument passed to the base class /// </param> public CardRequestsVM(ICardRequestService _service, IDinkeyDongleService _dongleService) : base(_service: _service, _dongleService: _dongleService) { }
public AddVehicleVM(IVehicleService service, IDinkeyDongleService _dongleService) : base(_service: service, _dongleService: _dongleService) { }
public CardInventoryVM(ICardService _cardService, IDinkeyDongleService _dongleService) : base(_service: _cardService, _dongleService: _dongleService) { }
public AddBuildingVM(IBuildingService service, IDinkeyDongleService _dongleService) : base(_service: service, _dongleService: _dongleService) { }
public VerifyCardVM(ICardService _service, ICardholderService _cardholderService, ICardReaderService _cardReader, IDinkeyDongleService _dongleService) : base(_service: _service, _dongleService: _dongleService) { cardReader = _cardReader; cardholderService = _cardholderService; }
public ServerSettingsVM(IDinkeyDongleService _dongleService, ISettingsService _settingsService) : base(_settingsService, _dongleService) { }
public CardDistributionVM(ICardRequestService service, IDinkeyDongleService _dongleService) : base(_service: service, _dongleService: _dongleService) { }