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; }
public void UpdateTaskContent(string value) { TaskContent = value; UpdateToolTip(GetTaskContent()); TaskPage.UpdateContent(GetTaskContent()); }
public void UpdateTaskName(string value) { TaskLabel.Content = value; TaskPage.UpdateTitle(TaskLabel.Content.ToString()); }