public VelerSoftware.SZC.Debugger.Core.Properties ToProperties() { VelerSoftware.SZC.Debugger.Core.Properties p = new VelerSoftware.SZC.Debugger.Core.Properties(); p.Set("Files", lastfile.ToArray()); p.Set("Projects", lastproject.ToArray()); return(p); }
public RecentOpen(VelerSoftware.SZC.Debugger.Core.Properties p) { // don't check whether files exist because that might be slow (e.g. if file is on network // drive that's unavailable) // if one of these entries is a string, then it's from a previous SharpDevelop version - don't try loading it if (p.Contains("Files") && !(p.Get("Files") is string)) { lastfile.AddRange(p.Get("Files", new string[0])); } if (p.Contains("Projects") && !(p.Get("Files") is string)) { lastproject.AddRange(p.Get("Projects", new string[0])); } }
public static RecentOpen FromXmlElement(VelerSoftware.SZC.Debugger.Core.Properties properties) { return(new RecentOpen(properties)); }