Example #1
0
 public void SaveMenu()
 {
     if (this._menulist != null)
     {
         Dictionary <string, string> t = null;
         if (Settings.Default.RecentUseMenu.Trim().Length > 0)
         {
             try
             {
                 t = SerializableHelper.DeSerialize <Dictionary <string, string> >(Settings.Default.RecentUseMenu);
             }
             catch
             {
             }
         }
         if (t == null)
         {
             t = new Dictionary <string, string>();
         }
         t[Variable.sUserId]            = SerializableHelper.SerializeToString <RecentUseMenuCollection>(this._menulist);
         Settings.Default.RecentUseMenu = SerializableHelper.SerializeToString <Dictionary <string, string> >(t);
         Settings.Default.Save();
     }
 }