private void ViewFilteredCommand_Executed(object sender, RoutedEventArgs e) { string userInput = TagFilterInput.Text; ViewTagsCommand FilterTagsClick = new ViewTagsCommand(this, userInput); FilterTagsClick.Execute(); this.ViewableTasks.View.Refresh(); }
public void ClientViewTagsRequest(string Tags) { Console.WriteLine("Received request to: View tags " + Tags); User mUser = FindUser(Context.ConnectionId); ViewTagsCommand mViewTags = new ViewTagsCommand(mUser, Tags); mViewTags.Execute(); Clients.Clients(mUser.ConnectionIDs).ReceiveUpdatedTasks(mUser.Tasks); }
private void ViewFilteredCommand_Executed(object sender, RoutedEventArgs e) { string userInput = TagFilterInput.Text; System.Threading.Tasks.Task.Factory.StartNew(() => { try { ViewTagsCommand FilterTagsClick = new ViewTagsCommand(this, userInput); FilterTagsClick.Execute(); } catch (AggregateException error) { MessageBox.Show(error.Message); } }); }