示例#1
0
        public static void AddApartment(Apartment apartment)
        {
            XmlApartmentWriter writer = new XmlApartmentWriter(ApartmentFile);

            writer.AppendElement(apartment);
        }
示例#2
0
        public static void RemoveApartment(Apartment apartment)
        {
            XmlApartmentWriter writer = new XmlApartmentWriter(ApartmentFile);

            writer.RemoveElement(apartment);
        }
示例#3
0
        public static bool ApartmentExist(Apartment apartment)
        {
            XmlApartmentReader reader = new XmlApartmentReader(ApartmentFile);

            return(reader.Exist(apartment));
        }