Exemplo n.º 1
0
        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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
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();
        }