public CopyWorkDayToUserForm(Form tMainForm, WorkTimeRegister tWorkTimeRegister) { MainForm = tMainForm; InitializeComponent(); cbUsers.DataSource = tWorkTimeRegister.UsersBindingSource; cbUsers.DisplayMember = "ShortName"; cbUsers.ValueMember = "UserID"; }
private void AcceptButton_Click(object sender, EventArgs e) { decimal hours = Convert.ToDecimal(textBox1.Text); WorkTimeRegister.EditTimesheetHours(WorkDayID, hours); FormEvent = eClose; AnimateTimer.Enabled = true; }
private void AcceptButton_Click(object sender, EventArgs e) { DateTime D = Convert.ToDateTime(timeEdit1.EditValue); if (DayEventType == dStartDay) { WorkTimeRegister.EditStartWorkDay(WorkDayID, D); } if (DayEventType == dEndDay) { WorkTimeRegister.EditEndWorkDay(WorkDayID, D); } if (DayEventType == dBreakDay) { WorkTimeRegister.EditBreakStartWorkDay(WorkDayID, D); } if (DayEventType == dContinueDay) { WorkTimeRegister.EditBreakEndWorkDay(WorkDayID, D); } FormEvent = eClose; AnimateTimer.Enabled = true; }