Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WelcomePanel"/> class.
        /// </summary>
        public WelcomePanel()
        {
            InitializeComponent();

            InheritFontToControlsExceptionList.Add(OpenConnectionHotLabel.Name);
            InheritFontToControlsExceptionList.Add(NewConnectionHotLabel.Name);
            InheritFontToControlsExceptionList.Add(ManageConnectionsHotLabel.Name);

            DoubleBuffered = true;
            ManageConnectionsHotLabel.Enabled = MySqlWorkbench.AllowsExternalConnectionsManagement;
            ConnectionsList.AddHeaderNode("Local Connections");
            ConnectionsList.AddHeaderNode("Remote Connections");
            LoadConnections(false);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="WelcomePanel"/> class.
        /// </summary>
        public WelcomePanel()
        {
            InitializeComponent();

            LargeImagesList.Images.Add("Connection_SSH-Disabled.png", Resources.Connection_SSH.ToGrayscale());
            LargeImagesList.Images.Add("Connection_X_32x32-Disabled.png", Resources.Connection_X_32x32.ToGrayscale());

            InheritFontToControlsExceptionList.Add(OpenConnectionHotLabel.Name);
            InheritFontToControlsExceptionList.Add(NewConnectionHotLabel.Name);
            InheritFontToControlsExceptionList.Add(ManageConnectionsHotLabel.Name);

            DoubleBuffered = true;
            ManageConnectionsHotLabel.Enabled = MySqlWorkbench.AllowsExternalConnectionsManagement;
            ConnectionsList.AddHeaderNode("Local Connections");
            ConnectionsList.AddHeaderNode("Remote Connections");
            LoadConnections(false);
        }