예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        //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;
            }
        }