public override bool StorePanelContents() { Core.Properties properties = PropertyService.Get(fullscreenProperty, new Core.Properties()); properties.Set("HideMainMenu", Get <CheckBox>("HideMainMenu").Checked); properties.Set("ShowMainMenuOnMouseMove", Get <CheckBox>("ShowMainMenuOnMouseMove").Checked); properties.Set("HideToolbars", Get <CheckBox>("HideToolbars").Checked); properties.Set("HideTabs", Get <CheckBox>("HideTabs").Checked); properties.Set("HideVerticalScrollbar", Get <CheckBox>("HideVerticalScrollbar").Checked); properties.Set("HideHorizontalScrollbar", Get <CheckBox>("HideHorizontalScrollbar").Checked); properties.Set("HideStatusBar", Get <CheckBox>("HideStatusBar").Checked); properties.Set("ShowStatusBarOnMouseMove", Get <CheckBox>("ShowStatusBarOnMouseMove").Checked); properties.Set("HideWindowsTaskbar", Get <CheckBox>("HideWindowsTaskbar").Checked); PropertyService.Set(fullscreenProperty, properties); return(true); }
void StoreMemento(IViewContent viewContent) { if (viewContent.PrimaryFileName == null) { return; } string key = GetMementoKeyName(viewContent); LoggingService.Debug("Saving memento of '" + viewContent.ToString() + "' to key '" + key + "'"); Core.Properties memento = ((IMementoCapable)viewContent).CreateMemento(); Core.Properties p = this.LoadOrCreateViewContentMementos(); p.Set(key, memento); FileUtility.ObservedSave(new NamedFileOperationDelegate(p.Save), this.ViewContentMementosFileName, FileErrorPolicy.Inform); }
static void SaveExternalProcessDisplayBindings() { displayBindingServiceProperties.Set("ExternalProcesses", externalProcessDisplayBindings.ToArray()); }