Esempio n. 1
0
        public override void Done(BuildProject currentObject)
        {
            if (currentObject == null)
            {
                throw new ArgumentNullException("currentObject");
            }

            List <string> filePathList = new List <string>();

            //Make sure we have some checked files before continuing
            foreach (FileListItem cItem in FileList.Items)
            {
                if (cItem.Checked)
                {
                    filePathList.Add(cItem.FilePath);
                }
            }

            if ((this.FilePath.Text.Trim().Length == 0) || (filePathList.Count == 0))
            {
                ShowErrorBubble(new WizardErrorMessage(FilePath, "Project Files Required", "You must choose files for this project to continue"));
                return;
            }

            //Create the template for this project
            currentObject.CreateTemplate(filePathList.ToArray());

            //Done
            base.Done(currentObject);
        }