ow
This commit is contained in:
1 parent
4521deaf78
commit
647a1c38ab
18 files changed
+279
-103
No files matched your search
@@ -13,12 +13,13 @@ namespace CloudBuilder.Core.Policy
|
||||
public class CoreMessagePolicy : AbstractPolicy, IPolicy
|
||||
{
|
||||
public const string THE_DATA_HAS_BEEN_MODIFIED = "the_data_has_been_modified";
|
||||
public const string NO_PERMISSION = "no_permission";
|
||||
|
||||
public static CoreMessagePolicy instance = null;
|
||||
|
||||
public CoreMessagePolicy(IContext context) : base(context)
|
||||
{
|
||||
this.values = new string[] { THE_DATA_HAS_BEEN_MODIFIED};
|
||||
this.values = new string[] { THE_DATA_HAS_BEEN_MODIFIED, NO_PERMISSION };
|
||||
}
|
||||
|
||||
public static CoreMessagePolicy GetInstance()
|
||||
|
||||
@@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="no_permission" xml:space="preserve">
|
||||
<value>No permission has been assigned.</value>
|
||||
</data>
|
||||
<data name="the_data_has_been_modified" xml:space="preserve">
|
||||
<value>The data has been modified by another user. Please refresh and try again.</value>
|
||||
</data>
|
||||
|
||||
@@ -117,6 +117,9 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="no_permission" xml:space="preserve">
|
||||
<value>没有分配权限.</value>
|
||||
</data>
|
||||
<data name="the_data_has_been_modified" xml:space="preserve">
|
||||
<value>数据已被其他用户修改,请刷新后重试.</value>
|
||||
</data>
|
||||
|
||||
Reference in new issue
Block a user