Beispiel #1
0
        private void Serialize(string filename, MAN selectedMAN)
        {
            Bar bubu = new Bar();
            Foo fufu = new Foo() { bar = bubu };
            bubu.foo = fufu;

            Serializer sl = new Serializer(filename, true);
            sl.WriteObject(selectedMAN);
            sl.Close();
        }
Beispiel #2
0
        private void Deserialize(string filename, MAN selectedMAN)
        {
            mMAN.Clear();

            Serializer dsl = new Serializer(filename, false);
            mMAN = (MAN)dsl.ReadObject();
            dsl.Close();

            listbox0.ItemsSource = mMAN;
            listbox1.ItemsSource = null;
        }