Example #1
0
 public AddUpdateTaskForm(User _user, bool _isUpdate, dateForm dateForm, tasksForm tasksForm)
 {
     InitializeComponent();
     user     = _user;
     isUpdate = _isUpdate;
     comboPriority.SelectedIndex = 0;
     this.dateForm  = dateForm;
     this.tasksForm = tasksForm;
     instance       = this;
     deadlineDateTimePicker.Format       = DateTimePickerFormat.Custom;
     deadlineDateTimePicker.CustomFormat = "MM/dd/yyyy hh:mm tt";
 }
Example #2
0
        // Open add new task form
        private void btnAddNewTask_Click(object sender, EventArgs e)
        {
            AddUpdateTaskForm addUpdateTaskForm = new AddUpdateTaskForm(user, false, this, null);

            addUpdateTaskForm.ShowDialog();
        }