// Form takes a user and main calendar form objects public dateForm(User _user, mainForm _calendar) { InitializeComponent(); user = _user; this.parentCalendar = _calendar; instance = this; //this.tasks = TaskController.getUserTasks(user, parentCalendar.getSelectedDate()); }
public AddMeetingToTasksForm(User _user, bool _isUpdate, dateForm _dateForm) { InitializeComponent(); this.user = _user; this.isUpdate = _isUpdate; this.dateForm = _dateForm; deadlineDateTimePicker.Format = DateTimePickerFormat.Custom; deadlineDateTimePicker.CustomFormat = "MM/dd/yyyy hh:mm tt"; }
//Helper that sets all form variables to current instance if not null private void setFormVariables() { //addUpdateAccount = AddUpdateAccountForm.Instance; //updateChildTask = AddUpdateChildTaskForm.Instance; //updateTask = AddUpdateTaskForm.Instance; //childTask = childTasksForm.Instance; changePasswordForm = changePasswordForm.Instance; dateForm = dateForm.Instance; //task = tasksForm.Instance; }
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"; }
public AddUpdateChildTaskForm(User _user, bool _isUpdate, dateForm dateForm, childTasksForm childTasksForm) { InitializeComponent(); user = _user; isUpdate = _isUpdate; //load tasks into comboBox this.dateForm = dateForm; this.childTasksForm = childTasksForm; //LoadComboBoxes(); //comboPriority.SelectedIndex = 0; instance = this; deadlinePicker.Format = DateTimePickerFormat.Custom; deadlinePicker.CustomFormat = "MM/dd/yyyy hh:mm tt"; if (dateForm != null) { this.taskTitle = TaskController.getATask(dateForm.getSelectedNodeTaskID()).title; } else if (childTasksForm != null) { this.taskTitle = childTasksForm.getTask().title; } }
private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e) { dateForm dateForm = new dateForm(theUser, this); dateForm.ShowDialog(); }