コード例 #1
0
ファイル: GeneralControl.cs プロジェクト: xargon180/Indihiang
        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);
        }
コード例 #2
0
 protected virtual void OnRenderHandler(RenderInfoEventArgs e)
 {
     if (RenderHandler != null)
     {
         RenderHandler(this, e);
     }
 }
コード例 #3
0
ファイル: RequestProcessingControl.cs プロジェクト: thpy/temp
        public void Populate()
        {
            cboParams1.Items.AddRange(_listYears.ToArray());
            SetGridLayout();

            RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.REQUEST, _fileName);

            _synContext.Post(OnRenderHandler, info);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        private void ShowData()
        {
            cboReport.SelectedIndex = 0;
            GenerateGraphUserAgent2();
            SetSize();

            RenderInfoEventArgs info = new RenderInfoEventArgs(_guid, LogFeature.USERAGENT, _fileName);

            _synContext.Post(OnRenderHandler, info);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        protected virtual void OnEndRenderHandler(RenderInfoEventArgs e)
        {
            if (EndRenderHandler != null)
            {
                if (_useExistingData)
                {
                    e.Id = _guidReportId.ToString();
                }

                EndRenderHandler(this, e);
            }
        }
コード例 #8
0
        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);
            }
        }
コード例 #9
0
        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);
        }