private void NewButton_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e) { ConfigurationPanel.RemoveAllObjects(); ConfigurationPanel.SetStripButtonState(ObjectsSplitPanel.operations.New); int height = 250; this.NewObject(e.ClickedItem.Tag.ToString(), e.ClickedItem.Text, height); this.TaskTabControl.SelectTab(ConfigurationTabPageName); }
private void OptionsButton_Click(object sender, EventArgs e) { EditObject obj; ConfigurationPanel.RemoveAllObjects(); ConfigurationPanel.EditObjectButton.Text = "Application Configuration"; obj = ConfigurationPanel.AddObject("Application Configuration", SqlConnectionControl.OptionsConfiguration); obj.ButtonVisible = false; ConfigurationPanel.ActiveEditObject = obj; ConfigurationPanel.SetStripButtonState(ObjectsSplitPanel.operations.New); this.TaskTabControl.SelectTab(ConfigurationTabPageName); }
//Show the object selected in the ObjectsTree private void ObjectsTreeView_AfterSelect(object sender, TreeViewEventArgs e) { try { Cursor.Current = Cursors.WaitCursor; ConfigurationPanel.RemoveAllObjects(); //Show Objects if (e.Node.Tag != null) { if (String.Equals(e.Node.Tag.ToString(), SqlConnectionControl.TreeNodeObjectType.ObjectNode.ToString())) { ConfigurationPanel.SetStripButtonState(ObjectsSplitPanel.operations.Show); this.ShowObject(e.Node.Parent.Name, e.Node.Text, e.Node.Text); } } } finally { Cursor.Current = Cursors.Default; } }