Beispiel #1
0
        public static string GetBuildCodeFileName(Project project, string componentName, string nameSpace)
        {
            GtkDesignInfo info          = GtkDesignInfo.FromProject(project);
            string        componentFile = info.GetComponentFile(componentName);

            if (componentFile == null)
            {
                if (nameSpace == "Stetic")
                {
                    return(info.GetBuildFileInSteticFolder(componentName));
                }
//					else
//						throw new UserException ("Cannot find component file for " + componentName);
            }
            else
            {
                return(info.GetBuildFileFromComponent(componentFile));
            }

            return(null);
        }