public bool CheckParameters()
        {
            if (!GenerationHelper.IsValidPackageName(this.packageTxtBox.Text))
            {
                MessageBoxHelper.DisplayInfo(Resources.PackageNameInvalid);
                this.packageTxtBox.Focus();
                return(false);
            }

            if (this.templateListBox.SelectedItems == null ||
                this.templateListBox.SelectedItems.Count == 0)
            {
                MessageBoxHelper.DisplayInfo(Resources.ShouldSelectOneTemplate);
                this.templateListBox.Focus();
                return(false);
            }

            return(true);
        }
Exemple #2
0
        public bool CheckParameters()
        {
            if (!GenerationHelper.IsValidPackageName(this.packageTxtBox.Text))
            {
                MessageBoxHelper.DisplayInfo("Package name is invalid,please input the english letters.");
                this.packageTxtBox.Focus();
                return(false);
            }

            if (this.templateListBox.SelectedItems == null ||
                this.templateListBox.SelectedItems.Count == 0)
            {
                MessageBoxHelper.DisplayInfo("You should select one template at least.");
                this.templateListBox.Focus();
                return(false);
            }

            return(true);
        }