private static void Save(Widget widget, bool resetCache) { ObjectStore os = ObjectStore.FetchByColumn(ObjectStore.Columns.Name, widget.Id.ToString()); os.Data = ObjectManager.ConvertToString(widget); os.Save(); if (resetCache) Reset(); }
/// <summary> /// Saves the widget. It must first be convered to the ObjectStore instance. /// </summary> /// <param name="widget"></param> public static void Save(Widget widget) { Save(widget, true); }