예제 #1
0
 public static void LoadRecentUsedProjectsByXElement(XElement rootNode)
 {
     Clear();
     foreach (var ele in rootNode.Elements())
     {
         ProjectRecentUseTime   time  = new ProjectRecentUseTime(int.Parse(ele.Element("Year").Value), int.Parse(ele.Element("Month").Value), int.Parse(ele.Element("Day").Value), int.Parse(ele.Element("Hour").Value), int.Parse(ele.Element("Minute").Value), int.Parse(ele.Element("Second").Value));
         Tuple <string, string> tuple = new Tuple <string, string>(ele.Element("ProjectName").Value, ele.Element("ProjectFullFileName").Value);
         RecentUsedProjectMessages.Add(time, tuple);
     }
     projectShowMessage.RaisePropertyChanged();
 }
예제 #2
0
 public static void Delete(ProjectRecentUseTime key)
 {
     RecentUsedProjectMessages.Remove(key);
     projectShowMessage.RaisePropertyChanged();
 }