コード例 #1
0
        public override void _runCommand()
        {
            NewProjectArg newProjectArg_ = this._getOwner() as NewProjectArg;
            CSLibraryProject cSLibraryProject_ = new CSLibraryProject();
            cSLibraryProject_._firstInit();

            string textName_ = "Class1.cs";
            TextClass textClass_ = new TextClass();
            textClass_._firstInit();
            textClass_._setBuildAction(BuildAction_.mCompile_);
            textClass_._setFileName(textName_);
            cSLibraryProject_._addTextClass(textClass_);

            cSLibraryProject_._runInit();
            cSLibraryProject_._initControl();

            string projectUrl_ = newProjectArg_._getProjectUrl();
            string projectName_ = newProjectArg_._getProjectName();
            cSLibraryProject_._createUrl(projectUrl_, projectName_);
            string projectAllUrl_ = cSLibraryProject_._getUrl();
            textClass_._createUrl(projectAllUrl_, textName_);

            WorkbenchSingleton workbenchSingleton_ = __singleton<WorkbenchSingleton>._instance();
            workbenchSingleton_._showContent(textClass_);
        }
コード例 #2
0
ファイル: NewCSFileCommand.cs プロジェクト: zyouhua/weilai
        public override void _runCommand()
        {
            NewFileArg newFileArg_ = this._getOwner() as NewFileArg;
            ITextDir textDir_ = newFileArg_._getParent() as ITextDir;
            string fileName_ = newFileArg_._getFileName();
            if (!fileName_.EndsWith(".cs"))
            {
                fileName_ += ".cs";
            }
            TextClass textClass_ = new TextClass();
            textClass_._firstInit();
            textClass_._setBuildAction(BuildAction_.mCompile_);
            textClass_._setFileName(fileName_);
            textDir_._addTextClass(textClass_);
            textClass_._runInit();
            textClass_._initControl();

            string projectUrl_ = textDir_._getDirUrl();
            textClass_._createUrl(projectUrl_, fileName_);

            WorkbenchSingleton workbenchSingleton_ = __singleton<WorkbenchSingleton>._instance();
            workbenchSingleton_._showContent(textClass_);
        }
コード例 #3
0
ファイル: TextDir.cs プロジェクト: zyouhua/weilai
 public void _addTextClass(TextClass nTextClass)
 {
     mTextClasses.Add(nTextClass);
 }
コード例 #4
0
ファイル: TextProject.cs プロジェクト: zyouhua/weilai
 public void _addTextClass(TextClass nTextClass)
 {
     mTextClasses.Add(nTextClass);
     base._newChild(nTextClass);
     base._runDirty();
 }