Beispiel #1
0
 static void Main()
 {
     PresentationModel presentationModel = new PresentationModel(new Model());
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new KanBanBoard(presentationModel));
 }
Beispiel #2
0
        static void Main()
        {
            PresentationModel presentationModel = new PresentationModel(new Model());

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new KanBanBoard(presentationModel));
        }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
        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;
            }
        }
Beispiel #5
0
 public KanBanBoard(PresentationModel presentationModel)
 {
     _presentationModel = presentationModel;
     InitializeComponent();
 }
Beispiel #6
0
 public KanBanBoard(PresentationModel presentationModel)
 {
     _presentationModel = presentationModel;
     InitializeComponent();
 }