Example #1
0
        public void CreateWizardFiles()
        {
            WizardProj wizard = WizardProj.getInstance();

            string dirWizardFramework = _rootDirPath + "//" + _projectHash["wizardName"];

            _CreateDir(dirWizardFramework);

            _CreateDir(dirWizardFramework + "//DataOper");

            #region DataOper
            string iFile = dirWizardFramework + "//DataOper//IDataHelper.cs";
            _CreateFile(iFile, wizard.CreateFile_IDataHelper(_projectHash["wizardName"] + ".DataOper"));

            string filePath = dirWizardFramework + "//DataOper//SqlHelper.cs";
            _CreateFile(filePath, wizard.CreateFile_SqlHelper(_projectHash["wizardName"] + ".DataOper"));

            string oracle = dirWizardFramework + "//DataOper//OracleHelper.cs";
            _CreateFile(oracle, wizard.CreateFile_OracleHelper(_projectHash["wizardName"] + ".DataOper"));

            string sqlite = dirWizardFramework + "//DataOper//SqliteHelper.cs";
            _CreateFile(sqlite, wizard.CreateFile_SqliteHelper(_projectHash["wizardName"] + ".DataOper"));

            #endregion

            #region LogOper
            string logFile = dirWizardFramework + "//LogMgr//LogHelper.cs";
            _CreateFile(logFile, wizard.CreateFile_LogHelper(_projectHash["wizardName"] + ".LogMgr"));

            string logModel = dirWizardFramework + "//LogMgr//LogModel.cs";
            _CreateFile(logModel, wizard.CreateFile_LogModel(_projectHash["wizardName"] + ".LogMgr"));


            #endregion
        }
Example #2
0
 public static WizardProj getInstance()
 {
     if (_wizard == null)
     {
         _wizard = new WizardProj();
     }
     return(_wizard);
 }