public void Reload() { var tabs = TabablzControl.GetLoadedInstances().FirstOrDefault(); var layout = LayoutAnalayzer.GetLayoutStructure(LAST_LAYOUT_NAME); Load(tabs, layout, _configurationService.ActiveConfiguration.Language); }
public void Save() { LayoutStructure layoutStructure = LayoutAnalayzer.GetLayoutStructure(LAST_LAYOUT_NAME); Properties.Settings.Default.LastConfigName = _configurationService.ActiveConfiguration.Name; _configurationService.ActiveConfiguration.LastLayout = SerializeStructure(layoutStructure); _configurationService.Save(); }
public void LoadAndSavePrevious(LayoutStructure layout) { LayoutStructure layoutStructure = LayoutAnalayzer.GetLayoutStructure(LAST_LAYOUT_NAME); _configurationService.ActiveConfiguration.LastLayout = SerializeStructure(layoutStructure); _configurationService.Save(); var tabs = TabablzControl.GetLoadedInstances().FirstOrDefault(); Load(tabs, layout, _configurationService.ActiveConfiguration.Language); }
public void Handle(ConfigurationSwitched message) { if (!message.SwitchOnDeletion) { LayoutStructure layoutStructure = LayoutAnalayzer.GetLayoutStructure(LAST_LAYOUT_NAME); _configurationService.PreviousConfiguration.LastLayout = SerializeStructure(layoutStructure); _configurationService.Save(); } var activeConfig = _configurationService.ActiveConfiguration; var tabs = TabablzControl.GetLoadedInstances().FirstOrDefault(); Load(tabs, activeConfig.PrimaryColor, activeConfig.AccentColor, activeConfig.DarkMode); }
public string GetCurrentLayout(string name) { LayoutStructure layoutStructure = LayoutAnalayzer.GetLayoutStructure(name); return(SerializeStructure(layoutStructure)); }