Exemplo n.º 1
0
        private void InitializeWizard(Dictionary<string, string> pReplacementsDictionary)
        {
            inputForm = new frmBackeçEndProjects();
            //inputForm.LongModuleName = GetLongModuleName(pReplacementsDictionary);
           

            //if (pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "ISVC")
            //{
            //    inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //    inputForm.Text = "Interfase Services Project Template";
            //}

            //if (pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "SVC")
            //{
            //    inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //    inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //    inputForm.Text = "Business Services Project Template";
            //}

            //if (pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "BC" ||
            //    pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "BE" ||
            //    pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "DAC")
            //{
            //    inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //}

            //switch(pReplacementsDictionary["$ComponentType$"].Trim().ToUpper())
            //{
            //    case  "ISVC":
            //        {
            //            inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //            inputForm.Text = "Interfase Services Project";
            //            break;
            //        }
            //    case "SVC":
            //        {
            //            inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            inputForm.Text = "Business Services Project";

            //            break;
            //        }
            //    case "BC":
            //        {
            //            inputForm.Text = "Business Component Project ";
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            break;
            //        }
            //    case "BE":
            //        {
            //            inputForm.Text = "Business Entities Project";
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            break;
            //        }

            //    case "DAC":
            //        {
            //            inputForm.Text = "Data Access Components Project";
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            break;
            //        }
            //}

            inputForm.ProjectName = pReplacementsDictionary["$projectname$"].ToString();
        }
Exemplo n.º 2
0
        private void InitializeWizard(Dictionary <string, string> pReplacementsDictionary)
        {
            inputForm = new frmBackeçEndProjects();
            //inputForm.LongModuleName = GetLongModuleName(pReplacementsDictionary);


            //if (pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "ISVC")
            //{
            //    inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //    inputForm.Text = "Interfase Services Project Template";
            //}

            //if (pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "SVC")
            //{
            //    inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //    inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //    inputForm.Text = "Business Services Project Template";
            //}

            //if (pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "BC" ||
            //    pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "BE" ||
            //    pReplacementsDictionary["$ComponentType$"].Trim().ToUpper() == "DAC")
            //{
            //    inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //}

            //switch(pReplacementsDictionary["$ComponentType$"].Trim().ToUpper())
            //{
            //    case  "ISVC":
            //        {
            //            inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //            inputForm.Text = "Interfase Services Project";
            //            break;
            //        }
            //    case "SVC":
            //        {
            //            inputForm.CommonNamespaceTemplate = pReplacementsDictionary["$CommonNamespace$"].ToString();
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            inputForm.Text = "Business Services Project";

            //            break;
            //        }
            //    case "BC":
            //        {
            //            inputForm.Text = "Business Component Project ";
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            break;
            //        }
            //    case "BE":
            //        {
            //            inputForm.Text = "Business Entities Project";
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            break;
            //        }

            //    case "DAC":
            //        {
            //            inputForm.Text = "Data Access Components Project";
            //            inputForm.BackendNamespaceTemplate = pReplacementsDictionary["$BackendNamespace$"].ToString();
            //            break;
            //        }
            //}

            inputForm.ProjectName = pReplacementsDictionary["$projectname$"].ToString();
        }