public SelectRemoteBranches(Simula.Scripting.Git.Repository repos)
        {
            InitializeComponent();

            this.picker.Objects.Clear();
            foreach (var item in repos.Branches)
            {
                if (item.IsRemote)
                {
                    this.picker.Objects.Add(item.FriendlyName);
                }
            }

            this.btnSelect.IsEnabled      = false;
            this.picker.SelectionChanged += Picker_SelectionChanged;
        }
Esempio n. 2
0
        public ManageBranch(Simula.Scripting.Git.Repository repos)
        {
            InitializeComponent();

            this.picker.Objects.Clear();
            foreach (var item in repos.Branches)
            {
                if (!item.IsRemote)
                {
                    this.picker.Objects.Add(item.FriendlyName);
                }
            }
            btnDelete.IsEnabled   = false;
            description.IsEnabled = false;

            repository = repos;
            this.picker.SelectionChanged += Picker_SelectionChanged;
            this.description.TextChanged += Description_TextChanged;
        }