private bool EditCloudDBConnection(IWin32Window parentWindow, Connections connections)
        {
            SsdsConnectionManagerForm form = new SsdsConnectionManagerForm();

            form.Initialize(this._serviceProvider, this.ConnectionManager, this.ErrorCollectionService);

            if (DesignUtils.ShowDialog(form, parentWindow, this._serviceProvider) == DialogResult.OK)
            {
                string cs = form.GetConnectionString(ConnectionStringDisplayOption.IncludePassword);
                ConnectionManager.ConnectionString = cs;

                if (!this.ConnectionManager.Name.Equals(form.ConnectionName, StringComparison.OrdinalIgnoreCase))
                {
                    this.ConnectionManager.Name =
                        ConnectionManagerUtils.GetConnectionName(connections, form.ConnectionName);
                }

                ConnectionManager.Description = form.ConnectionDescription;

                SsdsConnectionManager innerManager = (SsdsConnectionManager)ConnectionManager.InnerObject;

                innerManager.Authority = form.Authority;
                innerManager.UserName  = form.UserName;
                innerManager.Password  = form.Password;

                return(true);
            }

            return(false);
        }
        private bool EditCloudDBConnection(IWin32Window parentWindow, Connections connections)
        {
            SsdsConnectionManagerForm form = new SsdsConnectionManagerForm();

            form.Initialize(this._serviceProvider, this.ConnectionManager, this.ErrorCollectionService);

            if ( DesignUtils.ShowDialog(form, parentWindow, this._serviceProvider) == DialogResult.OK)
            {
                string cs = form.GetConnectionString(ConnectionStringDisplayOption.IncludePassword);
                ConnectionManager.ConnectionString = cs;

                if (!this.ConnectionManager.Name.Equals(form.ConnectionName, StringComparison.OrdinalIgnoreCase))
                {
                    this.ConnectionManager.Name = 
                        ConnectionManagerUtils.GetConnectionName(connections, form.ConnectionName);
                }

                ConnectionManager.Description = form.ConnectionDescription;
                
                SsdsConnectionManager innerManager = (SsdsConnectionManager)ConnectionManager.InnerObject;

                innerManager.Authority = form.Authority;
                innerManager.UserName = form.UserName;
                innerManager.Password = form.Password;

                return true;
            }

            return false;
        }