Ejemplo n.º 1
0
        private void Refesh_Click(object sender, RoutedEventArgs e)
        {
            if (txtFileLoad.Text == "")
            {
                MessageBox.Show("Bạn chưa load gói tin");
                return;
            }

            string pathSave = "Result.XML";

            ///XMl -> Obj -> XML
            var obj = SerializerObject.Check(txtFileLoad.Text);

            Serialize(pathSave, obj, obj.GetType());

            XmlDocument XMLdoc = new XmlDocument();

            try
            {
                XMLdoc.Load(pathSave);
            }
            catch (XmlException xmlex)
            {
                MessageBox.Show(xmlex.ToString());
                return;
            }
            vxmlAtfer.xmlDocument = XMLdoc;
        }
Ejemplo n.º 2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     object data = SerializerObject.Check("Data_Aggregation_Type.XML");
 }