private void FetchAllLoggedinUserPagesCommandHandler(object obj) { try { //if (flag > 0) { // flag = 0; if (LoginUser != null) { _onlineFetcherGetAllPagesTask = Task.Factory.StartNew(() => _onlineFetcher.GetAllPaLoggedinUserPages(LoginUser.InboxUserName, LoginUser.Password)); } else { System.Windows.MessageBox.Show("There is no 'User' select from dropdown list", "Alert Message Box", MessageBoxButton.OK, MessageBoxImage.Error); Image.Visibility = Visibility.Hidden; } Task.Factory.StartNew(() => FillPageList()); //} } catch (Exception) { } }
private void FetchAllLoggedinUserPagesCommandHandler(object obj) { //GetAllPaLoggedinUserPages _onlineFetcherGetAllPagesTask = Task.Factory.StartNew(() => _onlineFetcher.GetAllPaLoggedinUserPages(LoginUser.InboxUserName)); }