Пример #1
0
        private void LoadTableManager()
        {
            _TableManager = null;
            string tblfile = Environment.CurrentDirectory + "\\Mml23\\Table\\MML23Table.xml";
            object obj     = null;

            using (System.IO.StreamReader stream = new StreamReader(tblfile)) {
                TextReader reader = stream;
                System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(MmlTableManager));
                obj           = serializer.Deserialize(reader);
                _TableManager = (MmlTableManager)obj;
            }
        }
Пример #2
0
 private void LoadTableManager()
 {
     _TableManager = null;
     string tblfile=Environment.CurrentDirectory + "\\Mml23\\Table\\MML23Table.xml";
     object obj = null;
     using (System.IO.StreamReader stream= new StreamReader(tblfile)) {
         TextReader reader = stream;
         System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(MmlTableManager));
         obj=serializer.Deserialize(reader);
         _TableManager = (MmlTableManager)obj;
     }
 }