public bool Execute(IWin32Window owner, [MaybeNullWhen(false)] out StepTypeInfo resultInfo) { // Add all the available types to the list StepTypeInfo[] typeInfos = Manager.GetStepTypeInfos(); this.List.BeginUpdate(); try { this.List.Items.Clear(); this.List.SmallImageList = Manager.StepImages; foreach (StepTypeInfo info in typeInfos) { string[] items = { info.Name, info.Description }; ListViewItem item = new(items, info.ImageIndex) { Tag = info, }; this.List.Items.Add(item); } this.List.AutoSizeColumns(); } finally { this.List.EndUpdate(); } resultInfo = null; bool result = false; if (this.ShowDialog(owner) == DialogResult.OK) { resultInfo = (StepTypeInfo)this.List.SelectedItems[0].Tag; result = true; } return(result); }
public SoundStep(Project project, StepCategory category, StepTypeInfo info) : base(project, category, info, ExecSupports.None) { }
public GroupStep(Project project, StepCategory category, StepTypeInfo info) : base(project, category, info) { }
public MSBuildStep(Project project, StepCategory category, StepTypeInfo info) : base(project, category, info) { }
public CommandStep(Project project, StepCategory category, StepTypeInfo info) : base(project, category, info) { }
public PowerShellStep(Project project, StepCategory category, StepTypeInfo info) : base(project, category, info) { }
protected Step(Project project, StepCategory category, StepTypeInfo info) { this.project = project; this.category = category; this.stepTypeInfo = info; }