Beispiel #1
0
        public int CompareTo(object obj)
        {
            SiteApp app = obj as SiteApp;

            if (this.OrderId > app.OrderId)
            {
                return(-1);
            }
            if (this.OrderId < app.OrderId)
            {
                return(1);
            }
            if (this.Id > app.Id)
            {
                return(1);
            }
            if (this.Id < app.Id)
            {
                return(-1);
            }
            return(0);
        }
 public virtual IMemberApp GetByApp(long appInfoId, long appId)
 {
     IList list = new SiteApp().findAll();
     foreach (IMemberApp app in list) {
         if ((app.AppInfoId == appInfoId) && (app.AppOid == appId)) {
             return app;
         }
     }
     return null;
 }
 private Boolean isAdded( SiteApp app, IList addedList )
 {
     foreach (AppInstaller info in addedList) {
         if (app.AppInfo.Id == info.Id) {
             return true;
         }
     }
     return false;
 }
 public virtual IMemberApp FindById(long userAppId, long userId)
 {
     IList list = new SiteApp().findAll();
     foreach (IMemberApp app in list) {
         if ((app.OwnerId == userId) && (app.Id == userAppId)) {
             return app;
         }
     }
     return null;
 }