int CompareHomes(HMHome x, HMHome y)
 {
     if (x.IsAdmin() == y.IsAdmin())
     {
         return(x.Name.CompareTo(y.Name));
     }
     return(x.IsAdmin() ? 1 : 0);
 }
 int CompareHomes(HMHome x, HMHome y)
 {
     if (x.IsAdmin () == y.IsAdmin ())
         return x.Name.CompareTo (y.Name);
     return x.IsAdmin () ? 1 : 0;
 }
 protected static string SharedTextForHome(HMHome home)
 {
     return home.IsAdmin () ? "My Home" : "Shared with me";
 }
 protected static string SharedTextForHome(HMHome home)
 {
     return(home.IsAdmin() ? "My Home" : "Shared with me");
 }