private void ShowData() { listBoxFileName.Items.AddRange(_listFiles.ToArray()); listBoxIPAddress.Items.AddRange(_listServers.ToArray()); lbTotalFile.Text = String.Format("{0} files", _listFiles.Count); if (_totalData > 0) { lbTotalData.Text = String.Format("{0} rows", _totalData); } else { lbTotalData.Text = "No data"; } if (_listTime.Count > 0) { DateTime startDate = _listTime.Min(); DateTime endDate = _listTime.Max(); lbTime.Text = String.Format("{0:dd MMM yyyy} - {1:dd MMM yyyy}", startDate, endDate); } else { lbTime.Text = "-"; } RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.GENERAL, _fileName); _synContext.Post(OnRenderHandler, info); }
protected virtual void OnRenderHandler(RenderInfoEventArgs e) { if (RenderHandler != null) { RenderHandler(this, e); } }
public void Populate() { cboParams1.Items.AddRange(_listYears.ToArray()); SetGridLayout(); RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.REQUEST, _fileName); _synContext.Post(OnRenderHandler, info); }
public void Populate() { cboYear1.Items.AddRange(_listYears.ToArray()); cboYear2.Items.AddRange(_listYears.ToArray()); cboYear3.Items.AddRange(_listYears.ToArray()); RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.HITS, _fileName); _synContext.Post(OnRenderHandler, info); }
private void ShowData() { cboReport.SelectedIndex = 0; GenerateGraphUserAgent2(); SetSize(); RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.USERAGENT, _fileName); _synContext.Post(OnRenderHandler, info); }
private void backgroundJob_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { cboParams1.Items.AddRange(_listYears.ToArray()); cboParams2.Items.AddRange(_listYearMonth.ToArray()); SetIntialLayout(); SetSize(); RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.ACCESS, _fileName); _synContext.Post(OnRenderHandler, info); }
protected virtual void OnEndRenderHandler(RenderInfoEventArgs e) { if (EndRenderHandler != null) { if (_useExistingData) { e.Id = _guidReportId.ToString(); } EndRenderHandler(this, e); } }
private void WebLogUserControl_RenderHandler(object sender, RenderInfoEventArgs e) { string info = String.Format("{0:yyyy/MM/dd HH:mm:ss}[info]: Populated data on {1} was done", DateTime.Now, e.Feature.ToString()); AddLogStatus(info); _totalControls--; if (_totalControls <= 0) { OnEndRenderHandler(e); } }
public void Populate() { cboParams1.Items.AddRange(_listYears.ToArray()); cboParams2.Items.AddRange(_listYears.ToArray()); cboParams3.Items.AddRange(_listYears.ToArray()); cboParams4.Items.AddRange(_listYears.ToArray()); SetGridLayout(); backgroundWorker1.RunWorkerAsync(); RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.BANDWIDTH, _fileName); _synContext.Post(OnRenderHandler, info); }