Exemple #1
0
 public virtual int CompareTo(object paramObject)
 {
     if (paramObject.Equals(this))
     {
         return(0);
     }
     if (paramObject is BIMModelFile)
     {
         BIMModelFile bIMModelFile = (BIMModelFile)paramObject;
         return(((BIMModelFile)paramObject).Name.CompareTo(Name));
     }
     return(-1);
 }
Exemple #2
0
 public override bool Equals(object paramObject)
 {
     if (paramObject is BIMModelFile)
     {
         BIMModelFile bIMModelFile = (BIMModelFile)paramObject;
         if (bIMModelFile.LocalFile && LocalFile)
         {
             return(bIMModelFile.FilePath.AbsoluteFile.Equals(FilePath.AbsoluteFile));
         }
         if (!bIMModelFile.LocalFile && !LocalFile)
         {
             return(bIMModelFile.ModelId.Value == ModelId.Value);
         }
     }
     return(false);
 }