public MainPage() { this.InitializeComponent(); DataContext = new TaskListViewModel(); GetLoginInformation(); RemoteTaskManager.GetUsers(OnGetUsersCompleted); }
private async void Button_Click_3(object sender, RoutedEventArgs e) { RemoteTaskManager.UserName = UserNameText.Text; RemoteTaskManager.Password = PasswordText.Password; var vault = new Windows.Security.Credentials.PasswordVault(); vault.Add(new Windows.Security.Credentials.PasswordCredential( resourceName, RemoteTaskManager.UserName, RemoteTaskManager.Password)); await RemoteTaskManager.Login(); RemoteTaskManager.GetUsers(OnGetUsersCompleted); ((TaskListViewModel)DataContext).BeginUpdate(); }
public TaskDetailsPage() { InitializeComponent(); RemoteTaskManager.GetUsers(LoadOwners); }