private void GetConnection(CustomQueryWindowControl control)
        {
            var parent     = control.Parent;
            var type       = parent.GetType();
            var connection = parent.GetType().GetProperty("Connection").GetValue(parent, new object[] { });

            //connection has all the information in it

            //Dumper.Dump(parent, s =>
            //{
            //    m_LogMessage(s ?? "");
            //});
            //
            //m_LogMessage("Finished parent");
            //
            //Dumper.Dump(connection, s =>
            //{
            //    m_LogMessage(s ?? "");
            //});
            //
            //var color = parent.Prop("BackColor");

            m_LogMessage(type.FullName);
            m_LogMessage(connection.GetType().FullName);
        }
 public void Execute()
 {
     var control = new CustomQueryWindowControl(m_Provider);
     m_Provider.GetQueryWindowManager().CreateAugmentedQueryWindow(string.Empty, "Custom query window", control);
     control.Dock = DockStyle.Bottom;
     GetConnection(control);
 }
 private void GetConnection(CustomQueryWindowControl control)
 {
     var parent = control.Parent;
     var type = parent.GetType();
     var connectionProperty = type.GetProperty("Connection");
     var connection = connectionProperty.GetValue(parent, new object[] {});
     //connection has all the information in it
 }
        public void Execute()
        {
            var control = new CustomQueryWindowControl(m_Provider);

            m_Provider.GetQueryWindowManager().CreateAugmentedQueryWindow(string.Empty, "SQL", control);
            control.Dock   = DockStyle.Bottom;
            control.Width  = 0;
            control.Height = 0;
            GetConnection(control);

            m_LogMessage("Just Created A Tab Made By Serhat");
            m_Provider.GetQueryWindowManager().AddQueryWindowContextMenuItem("rename serhat", new SharedCommand(m_Provider, m_LogMessage));
        }