static void Main() { PresentationModel presentationModel = new PresentationModel(new Model()); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new KanBanBoard(presentationModel)); }
public NewTaskForm(PresentationModel presentationModel) { _presentationModel = presentationModel; InitializeComponent(); _assigneeComboBox.Items.Clear(); foreach (string username in _presentationModel.GetProjectUsers()) { _assigneeComboBox.Items.Add(username); } if (_presentationModel.IsEdit()) { Task task = _presentationModel.GetTargetTask(); _titleBox.Text = task.Title; _descriptionTextBox.Text = task.Description; _priorityComboBox.SelectedIndex = task.Priority; _deadline.Value = Convert.ToDateTime(task.Deadline); _assigneeComboBox.Text = task.Assignee; } }
public KanBanBoard(PresentationModel presentationModel) { _presentationModel = presentationModel; InitializeComponent(); }