public static CityDocument Open(string fileName) { CityDocument doc = new CityDocument(); doc.FileName = fileName; doc.HasFile = true; doc.Content = CityDistrict.LoadCml(fileName); doc.Snapshot(); return(doc); }
public static CityDocument New() { CityDocument doc = new CityDocument(); doc.FileName = string.Empty; doc.HasFile = false; doc.Content = new CityDistrict(); doc.Snapshot(); return(doc); }