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_); }
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_); }