如何使用 Properties.Reousrces
使用 Properties.Reousrces 可以非常方便的使用内嵌的资源
1.创建资源: Project 右键属性 ------> Resources ------> (如果没有创建,则点击链接,创建新的默认Resources.resx) ------------> 加入资源
2.使用 Properties.Resources 访问资源:
注意资源必须设置成 public , 这样才能从code 访问到 Properties.Resources
同时必须注意查看 Reousrces.Designer.cs 的 namespace 是否正确, 有些特定的命名空间可能被缩减,造成无法从 source code 访问