예제 #1
0
            public void Write()
            {
                var sect = settingsService.RecreateSection(SETTINGS_GUID);

                SavedWindowState.Write(sect.GetOrCreateSection(SAVEDWINDOWSTATE_SECTION));
                MainWindowControlState.Write(sect.GetOrCreateSection(MAINWINDOWCONTROLSTATE_SECTION));
            }
예제 #2
0
            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));
            }
예제 #3
0
		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;
		}
예제 #4
0
 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;
 }
예제 #5
0
			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));
			}