/// 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); } }
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(); }