Ejemplo n.º 1
0
            public void Write()
            {
                var sect = settingsService.RecreateSection(SETTINGS_GUID);

                SavedWindowState.Write(sect.GetOrCreateSection(SAVEDWINDOWSTATE_SECTION));
                MainWindowControlState.Write(sect.GetOrCreateSection(MAINWINDOWCONTROLSTATE_SECTION));
            }
Ejemplo n.º 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));
            }
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 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));
			}