示例#1
0
 public override string ToString()
 {
     return(Localizer.Message("role_" + mRole.ToString()));
 }
示例#2
0
 public virtual string BaseStringShort(double durationMs)
 {
     return(String.Format(Localizer.Message("phrase_short_to_string"),
                          TODO ? Localizer.Message("phrase_short_TODO") : "",
                          mRole == Role.Custom ? String.Format(Localizer.Message("phrase_short_custom"), mCustomRole) :
                          mRole == Role.Page ? String.Format(Localizer.Message("phrase_short_page"), mPageNumber != null ? mPageNumber.ToString() : "") :
                          mRole == Role.Anchor && this.AssociatedNode == null ? Localizer.Message("phrase_short_" + mRole.ToString()) + "= ?" :
                          Localizer.Message("phrase_short_" + mRole.ToString()),
                          durationMs == 0.0 ? Localizer.Message("empty") : Program.FormatDuration_Smart(durationMs)));
 }
示例#3
0
 public virtual string BaseString(double durationMs)
 {
     return(String.Format(Localizer.Message("phrase_to_string"),
                          TODO ? Localizer.Message("phrase_short_TODO") : "",
                          Used ? "" : Localizer.Message("unused"),
                          IsRooted ? Index + 1 : 0,
                          IsRooted ? ParentAs <ObiNode>().PhraseChildCount : 0,
                          durationMs == 0.0 ? Localizer.Message("empty") : Program.FormatDuration_Long(durationMs),
                          mRole == Role.Custom ? String.Format(Localizer.Message("phrase_extra_custom"), mCustomRole) :
                          mRole == Role.Page ? String.Format(Localizer.Message("phrase_extra_page"), mPageNumber != null ? mPageNumber.ToString() : "") :
                          mRole == Role.Anchor && this.AssociatedNode == null? Localizer.Message("phrase_extra_" + mRole.ToString()) + "= ?":
                          Localizer.Message("phrase_extra_" + mRole.ToString())));
 }