示例#1
0
        public MainPage()
        {
            this.InitializeComponent();

            DataContext = new TaskListViewModel();

            GetLoginInformation();
            RemoteTaskManager.GetUsers(OnGetUsersCompleted);
        }
示例#2
0
        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);
 }