예제 #1
0
            public void GetObjectData(object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
            {
                AltaxoDocument s = (AltaxoDocument)obj;

                info.AddValue("DataTableCollection", s.m_DataSet);
                //info.AddValue("Worksheets",s.m_Worksheets);
                //  info.AddValue("GraphForms",s.m_GraphForms);
            }
예제 #2
0
            public object SetObjectData(object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context, System.Runtime.Serialization.ISurrogateSelector selector)
            {
                AltaxoDocument s = (AltaxoDocument)obj;

                s.m_DataSet = (Altaxo.Data.DataTableCollection)info.GetValue("DataTableCollection", typeof(Altaxo.Data.DataTableCollection));
                // s.tstObj    = (AltaxoTestObject02)info.GetValue("TstObj",typeof(AltaxoTestObject02));
                //s.m_Worksheets = (System.Collections.ArrayList)info.GetValue("Worksheets",typeof(System.Collections.ArrayList));
                //  s.m_GraphForms = (System.Collections.ArrayList)info.GetValue("GraphForms",typeof(System.Collections.ArrayList));
                s.m_IsDirty = false;
                return(s);
            }