Ejemplo n.º 1
0
        public DialogResult ShowDialog(TreeVM tree)
        {
            if (tree == null) { throw new ArgumentNullException("tree"); }

            this._logs = new BindingList<LogDO>(tree.LoadLogs());

            this._currentTree = tree;
            this._treeDesLbl.Text = tree.LogLevelDiscription;

            this._dataGrid.DataSource = this._logs;
            this._dataGrid.Focus();

            var result = ShowDialog();
            tree.LogCountDirty = true;
            return result;
        }
Ejemplo n.º 2
0
        public DialogResult ShowDialog(TreeVM tree)
        {
            this._currentTree = tree;

            this._logs = new BindingList<LogDO>(tree.LoadLogs());

            this._treeDesLbl.Text = tree.LogLevelDiscription;

            this._BS_Logs.DataSource = this._logs;
            this._dataGrid.DataSource = this._BS_Logs;
            this._dataGrid.Focus();
            tree.LogCountDirty = true;
            return this.ShowDialog();
        }