//private enum StatisticsControlWorks : int //{ // GetTaskStatistics //} private static TaskStatisticsResult GetTaskStatistics(TaskStatisticsArgs args) { TaskStatisticsResult result = new TaskStatisticsResult(); result.AppsSummaryList = ApplicationSummaries.GetApplicationsSummary( args.ParentId, args.FromDate, args.ToDate); return(result); }
private void searchButton_Click(object sender, EventArgs e) { SetWaitState(); TaskStatisticsArgs args = new TaskStatisticsArgs(); args.FromDate = fromDateTimePicker.Value.Date; if (this.toRadioButton.Checked) { args.ToDate = toDateTimePicker.Value.Date.AddDays(1).AddSeconds(-1); } else { args.ToDate = fromDateTimePicker.Value.Date.AddDays(1).AddSeconds(-1); } args.ParentId = Tasks.FindById((int)this.parentTaskComboBox.SelectedValue).Id; worker.RunWorkerAsync(args); }
//private enum StatisticsControlWorks : int //{ // GetTaskStatistics //} private static TaskStatisticsResult GetTaskStatistics(TaskStatisticsArgs args) { TaskStatisticsResult result = new TaskStatisticsResult(); result.AppsSummaryList = ApplicationSummaries.GetApplicationsSummary( args.ParentId, args.FromDate, args.ToDate); return result; }