예제 #1
0
        private IProjectFile loadProject(string filename)
        {
            IProjectFile projectFile = null;

            if (filename.EndsWith(".udprojx"))
            {
                projectFile = new udprojxFile();
            }

            if (filename.EndsWith(".udproj"))
            {
                projectFile = new udprojFile();
            }

            if (projectFile != null)
            {
                projectFile.Open(filename);
            }

            return(projectFile);
        }
		private IProjectFile loadProject(string filename) {

			IProjectFile projectFile = null;
			if (filename.EndsWith(".udprojx"))
				projectFile = new udprojxFile();

			if(filename.EndsWith(".udproj"))
				projectFile = new udprojFile();

			if (projectFile != null)
				projectFile.Open(filename);

			return projectFile;
		}