Beispiel #1
0
 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);
 }
Beispiel #2
0
        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]));
            }
        }
Beispiel #3
0
 public static RecentOpen FromXmlElement(VelerSoftware.SZC.Debugger.Core.Properties properties)
 {
     return(new RecentOpen(properties));
 }