using CSC = CommunityServer.Components;
/// <summary>
/// Specifies if this post should be seen as anonymous by
/// the user who posted it.
/// </summary>
public bool IsAnonymousPost {
get {
// We have to use integral types
return IsPostConfigurationValueSet( (int) CSC.PostConfiguration.IsAnonymousPost );
}
set {
if (value == true)
SetPostConfigurationValueValue( (int) CSC.PostConfiguration.IsAnonymousPost, false );
else {
SetPostConfigurationValueValue( (int) CSC.PostConfiguration.IsAnonymousPost, true );
}
}
}
/// Specifies if this post should be seen as anonymous by
/// the user who posted it.
/// </summary>
public bool IsAnonymousPost {
get {
// We have to use integral types
return IsPostConfigurationValueSet( (int) CSC.PostConfiguration.IsAnonymousPost );
}
set {
if (value == true)
SetPostConfigurationValueValue( (int) CSC.PostConfiguration.IsAnonymousPost, false );
else {
SetPostConfigurationValueValue( (int) CSC.PostConfiguration.IsAnonymousPost, true );
}
}
}
这样就不用每次都写CommunityServer.Components这么长的东东了
浙公网安备 33010602011771号