private void ReadLocalUserData() { foreach (var item in GlobalConfig.Load().Users) { ClientServer client = new ClientServer(item.SavedCredential); var user = client.GetUserInfo(); _netDiskUserList.AddRange(user.records); } }
public HomeViewModel() { _client = new ClientServer(ClientServer.AuthenticationMounted); ChildrenFile = new ObservableCollection <INetDiskFile>(); var user = _client.GetUserInfo().records.FirstOrDefault(); if (_client.Authentication != null) { CurrentFile = (_netDiskUser.RootFile); GetFileList("/"); } }