Beispiel #1
0
        private void FrmEntityViewer_Load(object sender, EventArgs e)
        {
            //((TreeView) (ObjectBrowser.ActiveControl)).SelectedNode = ((TreeView) (ObjectBrowser.ActiveControl)).TopNode;
            //    propertyGrid1.SelectedObject = ObjectBeingBrowsed;
            //  propertyGrid1.RefreshSelectedObject();
            splitContainerValues.Panel2Collapsed = true;
            _doingObjectBrowserNodeSelection     = true;
            try
            {
                propertyGrid1.SelectedObject = ObjectBeingBrowsed;
            }
            finally
            {
                _doingObjectBrowserNodeSelection = false;
            }
            toolStripStatusLabelInstance.Text = string.Format("(({0})((FrmEntityViewer)Application.OpenForms[{1}]).ObjectBeingBrowsed)", ObjectBeingBrowsed.GetType(), AWHelper.GetIndexOfForm(this));
            textBoxObjectBeingBrowsed.Text    = toolStripStatusLabelInstance.Text;

            //checkBoxShowStaticMembers.Checked = ObjectBrowser.ShowStaticMembers;
            //checkBoxShowNonPublicMembers.Checked = ObjectBrowser.ShowNonPublicMembers;
            //checkBoxShowDataTypes.Checked = ObjectBrowser.ShowDataTypes;
            checkBoxShowStaticMembers_CheckedChanged(this, e);
            checkBoxShowNonPublicMembers_CheckedChanged(this, e);
            checkBoxShowDataTypes_CheckedChanged(this, e);
        }