예제 #1
0
        /// <summary>
        /// Initializes a new instance of the SyncDataViewModel class.
        /// </summary>
        public SyncDataViewModel()
        {
            _messenger = Mvx.Resolve<IMvxMessenger>();

            _log = Mvx.Resolve<IMvxTrace>();
            sync = 0;
        }
예제 #2
0
 public MainViewModel(IMvxNavigationService navigationService, IComosDBService comosDbService, IAppSettings appSettings, IMvxTrace log)
 {
     _comosDbService    = comosDbService;
     _navigationService = navigationService;
     _appSettings       = appSettings;
     _log = log;
 }
예제 #3
0
 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;
 }
예제 #4
0
        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);
        }
예제 #5
0
 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")
         },
     };
 }
예제 #6
0
 public NowPlayingViewModel(IStreamingService streamingService, IMvxNavigationService navigationService, IDeviceTimer deviceTimer, IMvxTrace trace) : base(navigationService, trace)
 {
     _navigationService = navigationService;
     _deviceTimer       = deviceTimer;
 }
예제 #7
0
 public MainViewModel(IStreamingService streamingService, IMvxNavigationService navigationService, IMvxTrace trace) : base(navigationService, trace)
 {
     _streamingService  = streamingService;
     _navigationService = navigationService;
     _status            = "God's Way Radio - 104.7";
     _streamingService.LoadStream();
 }
예제 #8
0
 public SplitRootViewModel(IMvxNavigationService navigationService,
                           IMvxTrace logger) : base(navigationService, logger)
 {
     ShowInitialMenuCommand = new MvxAsyncCommand(ShowInitialViewModel);
     ShowDetailCommand      = new MvxAsyncCommand(ShowDetailViewModel);
 }
예제 #9
0
 protected BaseService(IConnectionService connectionService, IMvxTrace trace)
 {
     _connectionService = connectionService;
     _trace             = trace;
 }
예제 #10
0
 //TODO: Check for trace
 public LoggingService(IMvxTrace trace, ISessionService sessionService)
 {
     this.SessionService = sessionService;
 }
예제 #11
0
 public WebsiteViewModel(IMvxNavigationService navigationService, IMvxTrace log) : base(navigationService, log)
 {
 }
예제 #12
0
 protected BaseViewModel(IMvxNavigationService navigationService,
                         IMvxTrace log)
 {
     _navigationService = navigationService;
     _log = log;
 }