コード例 #1
0
        private void TaskNameLabel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Label          taskNameLabel  = sender as Label;
            Task           task           = taskNameLabel.Tag as Task;
            ViewTaskWindow viewTaskWindow = new ViewTaskWindow(task, this, activeUser);

            this.IsEnabled = false;
            viewTaskWindow.Show();
        }
コード例 #2
0
        private void TaskNameLabel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Task task = (sender as Label).Tag as Task;

            task = DatabaseHandler.getInstance().getTaskFromId(task.Id);
            ViewTaskWindow taskWindow = new ViewTaskWindow(task, this, activeUser);

            this.IsEnabled = false;
            taskWindow.Show();
        }