示例#1
0
        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);
        }
示例#2
0
 public SoundStep(Project project, StepCategory category, StepTypeInfo info)
     : base(project, category, info, ExecSupports.None)
 {
 }
示例#3
0
 public GroupStep(Project project, StepCategory category, StepTypeInfo info)
     : base(project, category, info)
 {
 }
示例#4
0
 public MSBuildStep(Project project, StepCategory category, StepTypeInfo info)
     : base(project, category, info)
 {
 }
示例#5
0
 public CommandStep(Project project, StepCategory category, StepTypeInfo info)
     : base(project, category, info)
 {
 }
示例#6
0
 public PowerShellStep(Project project, StepCategory category, StepTypeInfo info)
     : base(project, category, info)
 {
 }
示例#7
0
文件: Step.cs 项目: menees/MegaBuild
 protected Step(Project project, StepCategory category, StepTypeInfo info)
 {
     this.project      = project;
     this.category     = category;
     this.stepTypeInfo = info;
 }