public KeyManagementPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth)
        {
            _bluetooth = bluetooth;
            _user      = user;

            KeyList = "";
        }
        public ProfilePageViewModel(KeyVendorUser user)
        {
            _user = user;

            UserName        = user.Name;
            UserDescription = user.Description;
            InfoChanged     = false;
        }
示例#3
0
 public void RestoreState(IDictionary <string, object> dictionary)
 {
     _user.IsNewUser     = GetDictionaryEntry(dictionary, "IsNewUser", true);
     _user.UUID          = GetDictionaryEntry(dictionary, "UUID", KeyVendorUser.GenerateUUID());
     _user.Name          = GetDictionaryEntry(dictionary, "UserName", "");
     _user.Description   = GetDictionaryEntry(dictionary, "UserDescription", "");
     _user.SavedAddress  = GetDictionaryEntry(dictionary, "SavedAddress", "");
     _user.IsInfoUpdated = GetDictionaryEntry(dictionary, "IsInfoUpdated", false);
 }
        public ConnectionPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth)
        {
            _user      = user;
            _bluetooth = bluetooth;

            ButtonText = TextConstants.ButtonStartRefreshing;
            DeviceList = _bluetooth.DeviceList;

            StartRefreshingAsync();
        }
示例#5
0
        public LogPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth)
        {
            _bluetooth = bluetooth;
            _user      = user;

            LogList = new ObservableCollection <LogInfo>();
            Indexer = 0;

            GetLogAsync(Indexer);
        }
示例#6
0
        public VendingPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth)
        {
            _bluetooth = bluetooth;
            _user      = user;

            IsToolbarVisible = _user.HasAdminRights;
            KeyList          = new ObservableCollection <string>();

            GetKeyListAsync();
        }
示例#7
0
 public UserManagementPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth)
 {
 }