コード例 #1
0
        public KeyManagementPageViewModel(KeyVendorUser user, IBluetoothManager bluetooth)
        {
            _bluetooth = bluetooth;
            _user      = user;

            KeyList = "";
        }
コード例 #2
0
        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);
 }
コード例 #4
0
        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)
 {
 }