CmisSync.SetupSubCustomizeController.AwakeFromNib C# (CSharp) Method

AwakeFromNib() public method

public AwakeFromNib ( ) : void
return void
        public override void AwakeFromNib ()
        {
            base.AwakeFromNib ();

            this.RepoNameLabel.StringValue = Properties_Resources.ChangeRepoPath;
            this.LocalPathLabel.StringValue = Properties_Resources.EnterLocalFolderName;

            this.RepoNameDelegate = new TextFieldDelegate ();
            this.RepoNameText.Delegate = this.RepoNameDelegate;
            this.LocalPathDelegate = new TextFieldDelegate ();
            this.LocalPathText.Delegate = this.LocalPathDelegate;

            this.BackButton.Title = Properties_Resources.Back;
            this.AddButton.Title = Properties_Resources.Add;
            this.CancelButton.Title = Properties_Resources.Cancel;

            InsertEvent ();

            //  Must be called after InsertEvent()
            string name = Controller.saved_address.Host.ToString();
            foreach (var repository in Controller.repositories) {
                if (repository.Id == Controller.saved_repository) {
                    name += "/" + repository.Name;
                    break;
                }
            }
            this.RepoNameText.StringValue = name;
            this.LocalPathText.StringValue = Path.Combine (Controller.DefaultRepoPath, name);

            CheckLocalPathText ();
        }