protected override void OnVisibleChanged(EventArgs e)
        {
            base.OnVisibleChanged(e);

            if (DesignMode)
            {
                return;
            }
            if (!_initialized && IsHandleCreated && Visible)
            {
                _initialized = true;
                if (SelectedUri != null)
                {
                    BrowseText();
                }

                if (Context != null)
                {
                    IAnkhSolutionSettings settings = Context.GetService <IAnkhSolutionSettings>();
                    if (settings != null)
                    {
                        foreach (Uri uri in settings.GetRepositoryUris(true))
                        {
                            if (!urlBox.Items.Contains(uri))
                            {
                                urlBox.Items.Add(uri);
                            }
                        }
                    }
                }
            }
        }
Beispiel #2
0
        private void Initialize()
        {
            if (_initialized)
            {
                return;
            }

            if (Context != null)
            {
                IAnkhSolutionSettings ss = Context.GetService <IAnkhSolutionSettings>();
                foreach (Uri u in ss.GetRepositoryUris(true))
                {
                    repositoryUrl.Items.Add(u);
                }
                _initialized = true;
            }
        }