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; }
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(); }
public LogPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth) { _bluetooth = bluetooth; _user = user; LogList = new ObservableCollection <LogInfo>(); Indexer = 0; GetLogAsync(Indexer); }
public VendingPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth) { _bluetooth = bluetooth; _user = user; IsToolbarVisible = _user.HasAdminRights; KeyList = new ObservableCollection <string>(); GetKeyListAsync(); }
public UserManagementPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth) { }