Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 /// <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);
 }