private void LoadProperties() { tabItemObjectProperties.Visible = instance.m_showObjectPropertiesTab; if (!tabItemClassProperties.Visible) { tabItemClassProperties.Visible = instance.m_showClassProperties; } if (Helper.Tab_index.Equals(0)) { DisplayDatabaseProperties(); } else if (Helper.Tab_index.Equals(1)) { DisplayClassProperties(); buttonSaveIndex.Enabled = !OMEInteraction.GetCurrentConnParams().ConnectionReadOnly&& !AssemblyInspectorObject.Connection.CheckForClientServer(); } else if (Helper.Tab_index.Equals(2)) { DisplayObjectProperties(); } tabStripProperties.SelectedItem = tabStripProperties.Items[Helper.Tab_index]; instance = this; }
/// <summary> /// Event track the selection of the treeview items /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void dbtreeviewObject_AfterSelect(object sender, TreeViewEventArgs e) { try { dbTreeView dbTreeviewObj = sender as dbTreeView; OMETrace.WriteFunctionStart(); //Set the class name to get the result SetClassName(e.Node); //Refresh Properties Pane for selected class propertiesTab = PropertiesTab.Instance; propertiesTab.ShowObjectPropertiesTab = false; if (classCount == 0 || (dbTreeviewObj.SelectedNode != null && dbTreeviewObj.SelectedNode.Tag != null && (dbTreeviewObj.SelectedNode.Tag.ToString() == "Fav Folder" || dbTreeviewObj.SelectedNode.Tag.ToString() == "Assembly View"))) { propertiesTab.ShowClassProperties = false; } else { propertiesTab.ShowClassProperties = true; } propertiesTab.RefreshPropertiesTab(0); ((dbTreeView)sender).UpdateTreeNodeSelection(e.Node, toolStripButtonAssemblyView.Checked); OMETrace.WriteFunctionEnd(); } catch (Exception oEx) { LoggingHelper.ShowMessage(oEx); } }
public void LoadAppropriatedata() { DefaultSetting(); Helper.ClassName = null; storedclasses = AssemblyInspectorObject.Connection.FetchAllStoredClasses(); if (storedclasses != null) { classCount = storedclasses.Count; } //Populate the TreeView dbtreeviewObject.AddFavouritFolderFromDatabase(); dbtreeviewObject.AddTreeNode(storedclasses, null); SelectFirstClassNode(); propertiesTab = PropertiesTab.Instance; if (classCount == 0) { propertiesTab.ShowClassProperties = false; toolStripButtonAssemblyView.Enabled = toolStripButtonFlatView.Enabled = false; } PopulateSearchStrings(); dbtreeviewObject.Focus(); dbtreeviewObject.Refresh(); OMETrace.WriteFunctionEnd(); instance = this; }
public void LoadAppropriatedata() { DefaultSetting(); Helper.ClassName = null; dbInteractionObject = new dbInteraction(); storedclasses = dbInteractionObject.FetchAllStoredClasses(); if (storedclasses != null) { classCount = storedclasses.Count; } //Assembly view disabled for java db. I don't know any other way ICollection keysCollection = storedclasses.Keys; foreach (string str in keysCollection) { if (!str.Contains(",")) { toolStripButtonAssemblyView.Enabled = false; break; } } //Populate the TreeView dbtreeviewObject.AddFavouritFolderFromDatabase(); dbtreeviewObject.AddTreeNode(storedclasses, null); SelectFirstClassNode(); propertiesTab = PropertiesTab.Instance; if (classCount == 0) { propertiesTab.ShowClassProperties = false; toolStripButtonAssemblyView.Enabled = toolStripButtonFlatView.Enabled = false; } recConnection = dbInteraction.GetCurrentRecentConnection(); PopulateSearchStrings(); dbtreeviewObject.Focus(); dbtreeviewObject.Refresh(); OMETrace.WriteFunctionEnd(); instance = this; }
private void LoadProperties() { tabItemObjectProperties.Visible = instance.m_showObjectPropertiesTab; if (!tabItemClassProperties.Visible) tabItemClassProperties.Visible = instance.m_showClassProperties; if (Helper.Tab_index.Equals(0)) { DisplayDatabaseProperties(); } else if (Helper.Tab_index.Equals(1)) { DisplayClassProperties(); buttonSaveIndex.Enabled = !dbInteraction.GetCurrentRecentConnection().ConnParam.ConnectionReadOnly; } else if (Helper.Tab_index.Equals(2)) { DisplayObjectProperties(); } tabStripProperties.SelectedItem = tabStripProperties.Items[Helper.Tab_index]; instance = this; }
private void LoadProperties() { tabItemObjectProperties.Visible = instance.m_showObjectPropertiesTab; if (!tabItemClassProperties.Visible) tabItemClassProperties.Visible = instance.m_showClassProperties; if (Helper.Tab_index.Equals(0)) { DisplayDatabaseProperties(); } else if (Helper.Tab_index.Equals(1)) { DisplayClassProperties(); buttonSaveIndex.Enabled = !OMEInteraction.GetCurrentConnParams().ConnectionReadOnly && !AssemblyInspectorObject.Connection.CheckForClientServer(); } else if (Helper.Tab_index.Equals(2)) { DisplayObjectProperties(); } tabStripProperties.SelectedItem = tabStripProperties.Items[Helper.Tab_index]; instance = this; }