コード例 #1
0
ファイル: Form1.cs プロジェクト: vdrav/SqlQueryStress
        private void totalExceptions_textBox_Click(object sender, EventArgs e)
        {
            _exceptionViewer = new DataViewer {
                StartPosition = FormStartPosition.CenterParent, Text = Resources.Exceptions
            };



            var dt = new DataTable();

            dt.Columns.Add("Count");
            dt.Columns.Add("Exception");

            if (_exceptions != null)
            {
                var values = _exceptions.Values.GetEnumerator();

                foreach (var ex in _exceptions.Keys)
                {
                    values.MoveNext();
                    var count = values.Current;
                    dt.Rows.Add(count, ex);
                }
            }

            _exceptionViewer.DataView = dt;

            _exceptionViewer.ShowDialog();
        }
コード例 #2
0
        private void totalExceptions_textBox_Click(object sender, EventArgs e)
        {
            this.exceptionViewer = new DataViewer();

            this.exceptionViewer.StartPosition = FormStartPosition.CenterParent;

            this.exceptionViewer.Text = "Exceptions";

            DataTable dt = new DataTable();

            dt.Columns.Add("Count");
            dt.Columns.Add("Exception");

            if (exceptions != null)
            {
                Dictionary <string, int> .ValueCollection.Enumerator values = this.exceptions.Values.GetEnumerator();

                foreach (string ex in this.exceptions.Keys)
                {
                    values.MoveNext();
                    int count = values.Current;
                    dt.Rows.Add(count, ex);
                }
            }

            this.exceptionViewer.DataView = dt;

            this.exceptionViewer.ShowDialog();
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: DarekDan/SqlQueryStress
        private void totalExceptions_textBox_Click(object sender, EventArgs e)
        {
            _exceptionViewer = new DataViewer {StartPosition = FormStartPosition.CenterParent, Text = Resources.Exceptions};



            var dt = new DataTable();
            dt.Columns.Add("Count");
            dt.Columns.Add("Exception");

            if (_exceptions != null)
            {
                var values = _exceptions.Values.GetEnumerator();

                foreach (var ex in _exceptions.Keys)
                {
                    values.MoveNext();
                    var count = values.Current;
                    dt.Rows.Add(count, ex);
                }
            }

            _exceptionViewer.DataView = dt;

            _exceptionViewer.ShowDialog();
        }
コード例 #4
0
ファイル: Form1.cs プロジェクト: nhudacin/SqlQueryStress
        private void totalExceptions_textBox_Click(object sender, EventArgs e)
        {
            this.exceptionViewer = new DataViewer();

            this.exceptionViewer.StartPosition = FormStartPosition.CenterParent;

            this.exceptionViewer.Text = "Exceptions";

            DataTable dt = new DataTable();
            dt.Columns.Add("Count");
            dt.Columns.Add("Exception");

            if (exceptions != null)
            {
                Dictionary<string, int>.ValueCollection.Enumerator values = this.exceptions.Values.GetEnumerator();

                foreach (string ex in this.exceptions.Keys)
                {
                    values.MoveNext();
                    int count = values.Current;
                    dt.Rows.Add(count, ex);
                }
            }

            this.exceptionViewer.DataView = dt;

            this.exceptionViewer.ShowDialog();
        }