Example #1
0
        public Task(string taskName, string taskContent, string taskDate)
        {
            TaskLabel = new Label();
            DockPanel.SetDock(TaskLabel, Dock.Top);
            SetLabelStyle(Brushes.Black, new Thickness(1), Brushes.White);
            TaskLabel.MouseDown += new MouseButtonEventHandler(MouseButtonDownHandler);

            TaskPage = new TaskPage();
            TaskPage.TitleTextBox.TextChanged   += TextChangedHandler;
            TaskPage.ContentTextBox.TextChanged += TextChangedHandler;

            TaskId = new Guid();

            TaskDateLabel = new Label();

            UpdateTaskName(taskName);
            UpdateTaskContent(taskContent);
            TaskDateLabel.Content = taskDate;
        }
Example #2
0
 public void UpdateTaskContent(string value)
 {
     TaskContent = value;
     UpdateToolTip(GetTaskContent());
     TaskPage.UpdateContent(GetTaskContent());
 }
Example #3
0
 public void UpdateTaskName(string value)
 {
     TaskLabel.Content = value;
     TaskPage.UpdateTitle(TaskLabel.Content.ToString());
 }