/// <summary> /// Initializes a new instance of the SyncDataViewModel class. /// </summary> public SyncDataViewModel() { _messenger = Mvx.Resolve<IMvxMessenger>(); _log = Mvx.Resolve<IMvxTrace>(); sync = 0; }
public MainViewModel(IMvxNavigationService navigationService, IComosDBService comosDbService, IAppSettings appSettings, IMvxTrace log) { _comosDbService = comosDbService; _navigationService = navigationService; _appSettings = appSettings; _log = log; }
public Updater(Assembly assembly, SQLiteConnectionWithLock connection, IMvxTrace trace) { if (assembly == null) { throw new ArgumentNullException(nameof(assembly)); } if (connection == null) { throw new ArgumentNullException(nameof(connection)); } if (trace == null) { throw new ArgumentNullException(nameof(trace)); } _trace = trace; _assembly = assembly; _connection = connection; }
public UpdateService(IMvxSqliteConnectionFactory factory, IMvxTrace trace, DatabaseSettings settings) { if (factory == null) { throw new ArgumentNullException(nameof(factory)); } if (trace == null) { throw new ArgumentNullException(nameof(trace)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } var config = new SqLiteConfig(settings.DatabaseName, serializer: new JsonBlobSerializer()); _connection = factory.GetConnectionWithLock(config); _updater = new Updater(typeof(DatabaseSchemaInitialUpdate).GetTypeInfo().Assembly, _connection, trace); }
public MenuViewModel(IMvxNavigationService navigationService, IMvxTrace trace) : base(navigationService, trace) { MenuItems = new List <MenuItem> { new MenuItem { Title = "Instagram", ImageName = "instagram", Color = MvxColor.ParseHexString("#517FA3") }, new MenuItem { Title = "Twitter", ImageName = "twitter", Color = MvxColor.ParseHexString("#55ACEF") }, new MenuItem { Title = "Facebook", ImageName = "facebook", Color = MvxColor.ParseHexString("#385B9B") }, //new MenuItem { Title = "YouTube", ImageName = "youtube", Color = MvxColor.ParseHexString("#E32D2A") }, //new MenuItem { Title = "Alerts", ImageName = "menu-alert" }, new MenuItem { Title = "Contact", ImageName = "phone", Color = MvxColor.ParseHexString("#0d3982") }, }; }
public NowPlayingViewModel(IStreamingService streamingService, IMvxNavigationService navigationService, IDeviceTimer deviceTimer, IMvxTrace trace) : base(navigationService, trace) { _navigationService = navigationService; _deviceTimer = deviceTimer; }
public MainViewModel(IStreamingService streamingService, IMvxNavigationService navigationService, IMvxTrace trace) : base(navigationService, trace) { _streamingService = streamingService; _navigationService = navigationService; _status = "God's Way Radio - 104.7"; _streamingService.LoadStream(); }
public SplitRootViewModel(IMvxNavigationService navigationService, IMvxTrace logger) : base(navigationService, logger) { ShowInitialMenuCommand = new MvxAsyncCommand(ShowInitialViewModel); ShowDetailCommand = new MvxAsyncCommand(ShowDetailViewModel); }
protected BaseService(IConnectionService connectionService, IMvxTrace trace) { _connectionService = connectionService; _trace = trace; }
//TODO: Check for trace public LoggingService(IMvxTrace trace, ISessionService sessionService) { this.SessionService = sessionService; }
public WebsiteViewModel(IMvxNavigationService navigationService, IMvxTrace log) : base(navigationService, log) { }
protected BaseViewModel(IMvxNavigationService navigationService, IMvxTrace log) { _navigationService = navigationService; _log = log; }