public override bool Compare(Document d)
 {
     if (d is ColorArrayDocument)
     {
         ColorArrayDocument old = d as ColorArrayDocument;
         return(CompareLists(this.cols, old.cols));
     }
     return(false);
 }
Exemple #2
0
        public static Document FastLoad(String path)
        {
            switch (Path.GetExtension(path))
            {
            case ".clr":
                return(ColorArrayDocument.LoadColorArray(path));

            case ".fld":
                return(FieldDocument.LoadFieldDocumentWithoutDrawing(path));

            case ".sct":
                return(StructureDocument.LoadStructureDocumentWithoutDrawing(path));

            default:
                return(null);
            }
        }