private void projectsDoneTodayByTheOperator_Click(object sender, RoutedEventArgs e) { DateTime dateTomorrow = Convert.ToDateTime(DateTime.Now.AddDays(1).ToString("dd/MM/yyyy HH:mm:ss")); OperatorProjectsDoneByDate operatorProjectsDoneByDate = new OperatorProjectsDoneByDate(userNameString, dateTomorrow, dateNow); operatorProjectsDoneByDate.ShowDialog(); }
private void projectsDoneThisWeekByTheOperator_Click(object sender, RoutedEventArgs e) { dateNow = Convert.ToDateTime(DateTime.Now.ToString("dd/MM/yyyy HH:mm:ss")); dateWeekAgo = Convert.ToDateTime(DateTime.Now.AddDays(-7).ToString("dd/MM/yyyy HH:mm:ss")); OperatorProjectsDoneByDate operatorProjectsDoneByDate = new OperatorProjectsDoneByDate(userNameString, dateWeekAgo, dateNow); operatorProjectsDoneByDate.ShowDialog(); }
private void projectsDoneThisWeekByTheOperator(object sender, MouseButtonEventArgs e) { OperatorProjectsDoneByDate operatorProjectsDoneByDate = new OperatorProjectsDoneByDate(userNameString, dateWeekAgo, dateNow); operatorProjectsDoneByDate.ShowDialog(); }