Exemplo n.º 1
0
 private void Init(IGitPlugin gitPlugin)
 {
     _gitPlugin         = gitPlugin;
     _settingsContainer = new GitPluginSettingsContainer(gitPlugin.Name);
     CreateSettingsControls();
     InitializeComplete();
 }
Exemplo n.º 2
0
 private void Init(IGitPlugin _gitPlugin)
 {
     this._gitPlugin    = _gitPlugin;
     settingsCointainer = new GitPluginSettingsContainer(_gitPlugin.Name);
     CreateSettingsControls();
     Translate();
 }
 private void Init(IGitPlugin gitPlugin)
 {
     _gitPlugin          = gitPlugin;
     _settingsCointainer = new GitPluginSettingsContainer(gitPlugin.Name);
     CreateSettingsControls();
     Translate();
 }
Exemplo n.º 4
0
        public DeleteUnusedBranchesForm(DeleteUnusedBranchesFormSettings settings, IGitModule gitCommands, IGitUICommands gitUiCommands, IGitPlugin gitPlugin)
        {
            _settings      = settings;
            _gitCommands   = gitCommands;
            _gitUiCommands = gitUiCommands;
            _gitPlugin     = gitPlugin;

            InitializeComponent();

            _NO_TRANSLATE_deleteDataGridViewCheckBoxColumn.Width = DpiUtil.Scale(50);
            dateDataGridViewTextBoxColumn.Width = DpiUtil.Scale(175);
            Author.Width = DpiUtil.Scale(91);

            imgLoading.Image = Resources.loadingpanel;

            _NO_TRANSLATE_deleteDataGridViewCheckBoxColumn.DataPropertyName = nameof(Branch.Delete);
            nameDataGridViewTextBoxColumn.DataPropertyName = nameof(Branch.Name);
            dateDataGridViewTextBoxColumn.DataPropertyName = nameof(Branch.Date);
            Author.DataPropertyName  = nameof(Branch.Author);
            Message.DataPropertyName = nameof(Branch.Message);

            InitializeComplete();

            ThreadHelper.JoinableTaskFactory.RunAsync(() => RefreshObsoleteBranchesAsync());
        }
Exemplo n.º 5
0
 private void Init(IGitPlugin _gitPlugin)
 {
     this._gitPlugin = _gitPlugin;
     settingsCointainer = new GitPluginSettingsContainer(_gitPlugin.Name);
     CreateSettingsControls();
     Translate();
 }
 public DeleteUnusedBranchesForm(DeleteUnusedBranchesFormSettings settings, IGitModule gitCommands, IGitUICommands gitUiCommands, IGitPlugin gitPlugin)
     : this()
 {
     _settings        = settings;
     _gitCommands     = gitCommands;
     _gitUiCommands   = gitUiCommands;
     _gitPlugin       = gitPlugin;
     imgLoading.Image = Resources.loadingpanel;
     ThreadHelper.JoinableTaskFactory.RunAsync(() => RefreshObsoleteBranchesAsync());
 }
Exemplo n.º 7
0
 public DeleteUnusedBranchesForm(DeleteUnusedBranchesFormSettings settings, IGitModule gitCommands, IGitUICommands gitUiCommands, IGitPlugin gitPlugin)
     : this()
 {
     _settings        = settings;
     _gitCommands     = gitCommands;
     _gitUiCommands   = gitUiCommands;
     _gitPlugin       = gitPlugin;
     imgLoading.Image = Resources.loadingpanel;
     RefreshObsoleteBranches();
 }
        public DeleteUnusedBranchesForm(int days, string referenceBranch, IGitModule gitCommands, IGitUICommands gitUICommands, IGitPlugin gitPlugin)
        {
            InitializeComponent();

            this.referenceBranch = referenceBranch;
            this.days = days;
            this.gitCommands = gitCommands;
            _gitUICommands = gitUICommands;
            _gitPlugin = gitPlugin;
            instructionLabel.Text = "Choose branches to delete. Only branches that are fully merged in '" + referenceBranch + "' will be deleted.";
        }
        private void Init(IGitPlugin gitPlugin)
        {
            Validates.NotNull(gitPlugin.Description);

            _gitPlugin = gitPlugin;

            // Description for old plugin setting processing as key
            _settingsContainer = new GitPluginSettingsContainer(gitPlugin.Id, gitPlugin.Description);
            CreateSettingsControls();
            InitializeComplete();
        }
        public DeleteUnusedBranchesForm(int days, string referenceBranch, IGitModule gitCommands, IGitUICommands gitUICommands, IGitPlugin gitPlugin)
        {
            InitializeComponent();

            this.referenceBranch  = referenceBranch;
            this.days             = days;
            this.gitCommands      = gitCommands;
            _gitUICommands        = gitUICommands;
            _gitPlugin            = gitPlugin;
            instructionLabel.Text = "Choose branches to delete. Only branches that are fully merged in '" + referenceBranch + "' will be deleted.";
        }
        public DeleteUnusedBranchesForm(int days, string referenceBranch, IGitModule gitCommands, IGitUICommands gitUICommands, IGitPlugin gitPlugin)
        {
            InitializeComponent();

            this.referenceBranch = referenceBranch;
            this.days = days;
            this.gitCommands = gitCommands;
            _gitUICommands = gitUICommands;
            _gitPlugin = gitPlugin;
            imgLoading.Image = IsMonoRuntime() ? Resources.loadingpanel_static : Resources.loadingpanel;
            RefreshObsoleteBranches();
        }
        public DeleteUnusedBranchesForm(int days, string referenceBranch, IGitModule gitCommands, IGitUICommands gitUICommands, IGitPlugin gitPlugin)
        {
            InitializeComponent();

            this.referenceBranch = referenceBranch;
            this.days            = days;
            this.gitCommands     = gitCommands;
            _gitUICommands       = gitUICommands;
            _gitPlugin           = gitPlugin;
            imgLoading.Image     = IsMonoRuntime() ? Resources.loadingpanel_static : Resources.loadingpanel;
            RefreshObsoleteBranches();
        }
Exemplo n.º 13
0
 public PluginSettingsPage(IGitPlugin gitPlugin)
 {
     InitializeComponent();
     Translate();
     _gitPlugin = gitPlugin;
 }
Exemplo n.º 14
0
        public static PluginSettingsPage CreateSettingsPageFromPlugin(ISettingsPageHost pageHost, IGitPlugin gitPlugin)
        {
            var result = Create <PluginSettingsPage>(pageHost);

            result.Init(gitPlugin);
            return(result);
        }
Exemplo n.º 15
0
        public static PluginSettingsPage CreateSettingsPageFromPlugin(ISettingsPageHost aPageHost, IGitPlugin gitPlugin)
        {
            var result = SettingsPageBase.Create <PluginSettingsPage>(aPageHost);

            result._gitPlugin = gitPlugin;
            return(result);
        }
Exemplo n.º 16
0
 public static PluginSettingsPage CreateSettingsPageFromPlugin(IGitPlugin gitPlugin)
 {
     return(new PluginSettingsPage(gitPlugin));
 }
Exemplo n.º 17
0
 public SettingsPageReferenceByPlugin(IGitPlugin gitPlugin)
     : base(gitPlugin.GetType())
 {
 }
Exemplo n.º 18
0
 public static PluginSettingsPage CreateSettingsPageFromPlugin(IGitPlugin gitPlugin)
 {
     return new PluginSettingsPage(gitPlugin);
 }
Exemplo n.º 19
0
 public static PluginSettingsPage CreateSettingsPageFromPlugin(ISettingsPageHost aPageHost, IGitPlugin gitPlugin)
 {
     var result = SettingsPageBase.Create<PluginSettingsPage>(aPageHost);
     result.Init(gitPlugin);
     return result;
 }
Exemplo n.º 20
0
 private void PluginListSelectedIndexChanged(object sender, EventArgs e)
 {
     SaveSettings();
     _selectedGitPlugin = PluginList.SelectedItem as IGitPlugin;
     LoadSettings();
 }
Exemplo n.º 21
0
 private void PluginListSelectedIndexChanged(object sender, EventArgs e)
 {
     SaveSettings();
     _selectedGitPlugin = PluginList.SelectedItem as IGitPlugin;
     LoadSettings();
 }
Exemplo n.º 22
0
 public PluginSettingsPage(IGitPlugin gitPlugin)
 {
     InitializeComponent();
     Translate();
     _gitPlugin = gitPlugin;
 }
Exemplo n.º 23
0
 public bool StartSettingsDialog(IGitPlugin gitPlugin)
 {
     // TODO: how to pass the main dialog as owner of the SettingsDialog (first parameter):
     return StartSettingsDialog(null, new SettingsPageReferenceByPlugin(gitPlugin));
 }
 public SettingsPageReferenceByPlugin(IGitPlugin gitPlugin)
     : base(gitPlugin.GetType())
 {
 }