public void Write() { var sect = settingsService.RecreateSection(SETTINGS_GUID); SavedWindowState.Write(sect.GetOrCreateSection(SAVEDWINDOWSTATE_SECTION)); MainWindowControlState.Write(sect.GetOrCreateSection(MAINWINDOWCONTROLSTATE_SECTION)); }
public void Read() { var sect = settingsManager.GetOrCreateSection(SETTINGS_GUID); this.SavedWindowState = new SavedWindowState().Read(sect.GetOrCreateSection(SAVEDWINDOWSTATE_SECTION)); this.MainWindowControlState = new MainWindowControlState().Read(sect.GetOrCreateSection(MAINWINDOWCONTROLSTATE_SECTION)); }
public SavedWindowStateRestorer(MetroWindow window, SavedWindowState settings, Rect defaultWindowLocation) { this.window = window; this.settings = settings; this.defaultWindowLocation = defaultWindowLocation; window.SourceInitialized += Window_SourceInitialized; window.ContentRendered += Window_ContentRendered; }
public void Read() { var sect = settingsService.GetOrCreateSection(SETTINGS_GUID); SavedWindowState = new SavedWindowState().Read(sect.GetOrCreateSection(SAVEDWINDOWSTATE_SECTION)); MainWindowControlState = new MainWindowControlState().Read(sect.GetOrCreateSection(MAINWINDOWCONTROLSTATE_SECTION)); }