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

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