Esempio n. 1
0
 public static void Clear()
 {
     Account    = null;
     Username   = string.Empty;
     Conference = null;
     Roles.Clear();
     Conferences.Clear();
     Author = null;
 }
Esempio n. 2
0
 void Handle_Search(string key)
 {
     if (key.Length > 4)
     {
         var searchItems = Conferences.Where(x => x.Title.ToLower().StartsWith(key.ToLower())).ToList();
         Conferences.Clear();
         searchItems.ForEach(x => Conferences.Add(x));
         Count = searchItems.Count();
     }
     else
     {
         if (key.Length == 0)
         {
             Conferences.Clear();
             BindData();
         }
     }
 }