예제 #1
0
        private void btnUsers_Click(object sender, EventArgs e)
        {
            var userName = _txtUserName.Text;

            if (userName == "")
            {
                MessageBox.Show("Enter UserName.");
                return;
            }

            _timeSheetsGrid.DataSource = DataDB.GetUsers(userName);
        }
예제 #2
0
        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);
        }
예제 #3
0
        private void btnHoursPerProject_Click(object sender, EventArgs e)
        {
            var date = getDate();

            _timeSheetsGrid.DataSource = DataDB.GetTotalHoursPerProject(date);
        }