public virtual string RowClass(ActiveRecord record) { if (record == null) { return("row-" + Html.OddEven); } return("row-" + Html.OddEven + (record.GetIsActive() ? "" : " inactive")); }
public static void AddPhrase(ActiveRecord record, string phrase = null, bool splitPhrase = false, string delimiter = ",") { if (phrase == null) { phrase = record.GetName(); } if (record.GetIsActive()) { AddPhrase(record.GetTableName(), record.ID_Field.ToInt(), phrase, splitPhrase, delimiter); } else { DeletePhrase(record); } }