private void MoveDownCommand_Executed(object sender, RoutedEventArgs e)
        {
            MoveTaskCommand DownClick = new MoveTaskCommand(this, false);

            DownClick.Execute();
            this.ViewableTasks.View.Refresh();
        }
        private void MoveUpCommand_Executed(object sender, RoutedEventArgs e)
        {
            MoveTaskCommand UpClick = new MoveTaskCommand(this, true);

            UpClick.Execute();
            this.ViewableTasks.View.Refresh();
        }
Exemple #3
0
        public void ClientMoveTaskRequest(int RandomID, bool Direction)
        {
            Console.WriteLine("Received request to: Move task " + RandomID + "Direction: " + Direction.ToString());
            User mUser = FindUser(Context.ConnectionId);

            if (mUser.Tasks.Count == 0)
            {
                EmptyListBroadcast();
                return;
            }

            MoveTaskCommand mMoveTask = new MoveTaskCommand(mUser, RandomID, Direction);

            mMoveTask.Execute();

            Clients.Clients(mUser.ConnectionIDs).ReceiveUpdatedTasks(mUser.Tasks);
        }