Пример #1
0
        public void SetMemento(ICSharpCode.Core.Properties memento)
        {
            Rect bounds = memento.Get("Bounds", new Rect(10, 10, 750, 550));

            // bounds are validated after PresentationSource is initialized (see OnSourceInitialized)
            lastNonMinimizedWindowState = memento.Get("WindowState", System.Windows.WindowState.Maximized);
            SetBounds(bounds);
        }
Пример #2
0
        public RecentOpen(ICSharpCode.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]));
            }
        }