private void btnUsers_Click(object sender, EventArgs e) { var userName = _txtUserName.Text; if (userName == "") { MessageBox.Show("Enter UserName."); return; } _timeSheetsGrid.DataSource = DataDB.GetUsers(userName); }
private void btnTimeslots_Click(object sender, EventArgs e) { var userName = _txtUserName.Text; var date = getDate(); if (userName == "") { MessageBox.Show("Enter UserName."); return; } _timeSheetsGrid.DataSource = DataDB.GetFullTimeSlots(userName, date); }
private void btnHoursPerProject_Click(object sender, EventArgs e) { var date = getDate(); _timeSheetsGrid.DataSource = DataDB.GetTotalHoursPerProject(date); }