CCTfsWrapper.SelectBuildsForm.OnLoad C# (CSharp) Method

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnLoad(EventArgs e)
        {
            RegistryKey serverUriKey = Registry.LocalMachine.OpenSubKey(_baseRegistryKey);
            lblServerUri.Text = serverUriKey == null ? "" : serverUriKey.GetValue(DEFAULT_SERVER_URI_KEY).ToString();
            if (lblServerUri.Text != string.Empty)
            {
                PopulateProjects();
                RegistryKey projectUriKey = Registry.LocalMachine.OpenSubKey(_baseRegistryKey);
                string defaultProject = projectUriKey == null ? "" : projectUriKey.GetValue(DEFAULT_PROJECT_NAME_KEY).ToString();
                TeamProjectDropDown.SelectedText = defaultProject;
                ShowBuilds(defaultProject);
            }
            base.OnLoad(e);
        }