Пример #1
0
        private void ViewFilteredCommand_Executed(object sender, RoutedEventArgs e)
        {
            string          userInput       = TagFilterInput.Text;
            ViewTagsCommand FilterTagsClick = new ViewTagsCommand(this, userInput);

            FilterTagsClick.Execute();
            this.ViewableTasks.View.Refresh();
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
                }
            });
        }