public static void saveObject(WidgetSettingList obj) { using (FileStream fs = new FileStream(LpsPathControllerCus.getWidgetListPath(), FileMode.Create, FileAccess.Write)) { BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(fs, obj); fs.Flush(); } }
private void loadObject() { this.ows = SerialWidgetSetting.loadObject(); this.owml = SerialWidgetList.loadObject(); }