//https://developer.xamarin.com/api/type/System.IDisposable/ //http://stackoverflow.com/questions/538060/proper-use-of-the-idisposable-interface public CustomViewModelBase(INavigationService navService, IDataRetrievalService dataRetrievalService, IDataDownloadService dataDownloadService, IStateService stateService, ILoggingService loggingService, IMemoryReporterService memoryReporterService) { if (navService == null) { throw new ArgumentException("Invalid navService"); } if (dataRetrievalService == null) { throw new ArgumentException("Invalid dataRetrievalService"); } if (dataDownloadService == null) { throw new ArgumentException("Invalid dataDownloadService"); } if (stateService == null) { throw new ArgumentException("Invalid stateService"); } if (loggingService == null) { throw new ArgumentException("Invalid loggingService"); } if (memoryReporterService == null) { throw new ArgumentException("Invalid memoryReporterService"); } NavService = navService; DataRetrievalService = dataRetrievalService; DataDownloadService = dataDownloadService; StateService = stateService; LoggingService = loggingService; MemoryReporterService = memoryReporterService; IsDev = false; #if DEBUG IsDev = true; #endif }
public WelcomeViewModel(INavigationService navService, IDataRetrievalService dataRetrievalService, IDataDownloadService dataDownloadService, IStateService stateService, ILoggingService loggingService, IMemoryReporterService memoryReporterService) : base(navService, dataRetrievalService, dataDownloadService, stateService, loggingService, memoryReporterService) { Meetings = new ObservableCollection <Meeting>(); _hasLoaded = false; }
public GameViewModel(INavigationService navService, IDataRetrievalService dataRetrievalService, IDataDownloadService dataDownloadService, IStateService stateService, ILoggingService loggingService, IMemoryReporterService memoryReporterService) : base(navService, dataRetrievalService, dataDownloadService, stateService, loggingService, memoryReporterService) { BingoInstanceContent = new List <ModelObj.BB.BingoInstanceContent>(); Players = new List <PlayerViewModel>(); }
public SplashViewModel(INavigationService navService, IDataRetrievalService dataRetrievalService, IDataDownloadService dataDownloadService, IStateService stateService, ILoggingService loggingService, IMemoryReporterService memoryReporterService) : base(navService, dataRetrievalService, dataDownloadService, stateService, loggingService, memoryReporterService) { }