private void Init(IGitPlugin gitPlugin) { _gitPlugin = gitPlugin; _settingsContainer = new GitPluginSettingsContainer(gitPlugin.Name); CreateSettingsControls(); InitializeComplete(); }
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(); }
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()); }
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()); }
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(); }
public PluginSettingsPage(IGitPlugin gitPlugin) { InitializeComponent(); Translate(); _gitPlugin = gitPlugin; }
public static PluginSettingsPage CreateSettingsPageFromPlugin(ISettingsPageHost pageHost, IGitPlugin gitPlugin) { var result = Create <PluginSettingsPage>(pageHost); result.Init(gitPlugin); return(result); }
public static PluginSettingsPage CreateSettingsPageFromPlugin(ISettingsPageHost aPageHost, IGitPlugin gitPlugin) { var result = SettingsPageBase.Create <PluginSettingsPage>(aPageHost); result._gitPlugin = gitPlugin; return(result); }
public static PluginSettingsPage CreateSettingsPageFromPlugin(IGitPlugin gitPlugin) { return(new PluginSettingsPage(gitPlugin)); }
public SettingsPageReferenceByPlugin(IGitPlugin gitPlugin) : base(gitPlugin.GetType()) { }
public static PluginSettingsPage CreateSettingsPageFromPlugin(IGitPlugin gitPlugin) { return new PluginSettingsPage(gitPlugin); }
public static PluginSettingsPage CreateSettingsPageFromPlugin(ISettingsPageHost aPageHost, IGitPlugin gitPlugin) { var result = SettingsPageBase.Create<PluginSettingsPage>(aPageHost); result.Init(gitPlugin); return result; }
private void PluginListSelectedIndexChanged(object sender, EventArgs e) { SaveSettings(); _selectedGitPlugin = PluginList.SelectedItem as IGitPlugin; LoadSettings(); }
private void PluginListSelectedIndexChanged(object sender, EventArgs e) { SaveSettings(); _selectedGitPlugin = PluginList.SelectedItem as IGitPlugin; LoadSettings(); }
public PluginSettingsPage(IGitPlugin gitPlugin) { InitializeComponent(); Translate(); _gitPlugin = gitPlugin; }
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()) { }