/// <summary> /// Saves updated parameter values /// </summary> private void SaveParameters() { // Save parameter values selected from UI XmlFileManager.SaveHistoricalParameters( SelectedStartDate.ToString("yyyy,MM,dd"), SelectedEndDate.ToString("yyyy,MM,dd"), SelectedProvider.ProviderName, _filePath); }
private void Resume() { footTrafficDurationAverageModelBindingSource.DataSource = Dao.FootTraffic.GetDurationAverageModel(SelectedStartDate, SelectedEndDate); chartControl1.Series[0].FilterString = $"[StationId] = {SelectedStation} And [TransferId] = 1"; chartControl1.Series[1].FilterString = $"[StationId] = {SelectedStation} And [TransferId] = 2"; chartControl2.Series[0].FilterString = $"[StationId] = {SelectedStation} And [TransferId] = 1 And [Date] Between(#{SelectedStartDate.ToShortDateString()}#, #{SelectedEndDate.ToShortDateString()}#)"; chartControl2.Series[1].FilterString = $"[StationId] = {SelectedStation} And [TransferId] = 2 And [Date] Between(#{SelectedStartDate.ToShortDateString()}#, #{SelectedEndDate.ToShortDateString()}#)"; ResumeLayout(false); }