예제 #1
0
        /// Not working
        static public void SerializeCode(SerializationStore store)
        {
            string fname = ControlUtil.FSave("Any|*");

            if (fname != string.Empty)
            {
                using (FileStream fs = new FileStream(fname, FileMode.OpenOrCreate))
                    store.Save(fs);
            }
        }
예제 #2
0
        private void LoadRuntime(int type)
        {
            var controls            = surface.ComponentContainer.Components;
            SerializationStore data = (SerializationStore)surface._designerSerializationService.Serialize(controls);


            MemoryStream ms = new MemoryStream();

            data.Save(ms);
            SaveData.Data     = ms.ToArray();
            SaveData.LoadType = type;
            new RuntimeForm().Show();
        }