XmlFile.h

#pragma once


namespace Core
{
    /// XMLファイル
    public ref class XmlFile : public System::Xml::XmlDocument
    {
    // Construction --------------------------------------------------------
    public:
        XmlFile();


    // Operation -----------------------------------------------------------
    public:
        System::Xml::XmlElement^ CreateRoot( System::String^ name );
        System::Xml::XmlElement^ CreateElement( System::String^ name, System::Object^ text ) new;

        bool LoadFile( System::String^ fileName );

        System::Xml::XmlElement^ LoadWindowStatus( System::Windows::Forms::Form^ form, System::Xml::XmlElement^ element );
        System::Xml::XmlElement^ SaveWindowStatus( System::Windows::Forms::Form^ form, System::Xml::XmlElement^ element );

    };
}