public void LoadPreferences(Preferences prefs, String key, bool appOnly) { if (!appOnly) { // private settings m_MindMap.Alignment = (MindMapControl.RootAlignment)prefs.GetProfileInt(key, "RootAlignment", (int)m_MindMap.Alignment); m_AlignmentCombo.SelectedAlignment = m_MindMap.Alignment; m_MindMap.Options = (MindMapOption)prefs.GetProfileInt(key, "Options", (int)m_MindMap.Options); m_OptionsCombo.SelectedOptions = m_MindMap.Options; } bool taskColorIsBkgnd = prefs.GetProfileBool("Preferences", "ColorTaskBackground", false); m_MindMap.TaskColorIsBackground = taskColorIsBkgnd; bool showParentsAsFolders = prefs.GetProfileBool("Preferences", "ShowParentsAsFolders", false); m_MindMap.ShowParentsAsFolders = showParentsAsFolders; bool showDoneCheckboxes = prefs.GetProfileBool("Preferences", "AllowCheckboxAgainstTreeItem", false); m_MindMap.ShowCompletionCheckboxes = showDoneCheckboxes; m_MindMap.SetStrikeThruDone(prefs.GetProfileBool("Preferences", "StrikethroughDone", true)); }
public void LoadPreferences(Preferences prefs, String key, bool appOnly) { if (!appOnly) { // private settings } bool taskColorIsBkgnd = prefs.GetProfileBool("Preferences", "ColorTaskBackground", false); m_MindMap.TaskColorIsBackground = taskColorIsBkgnd; bool showParentsAsFolders = prefs.GetProfileBool("Preferences", "ShowParentsAsFolders", false); m_MindMap.ShowParentsAsFolders = showParentsAsFolders; bool showDoneCheckboxes = prefs.GetProfileBool("Preferences", "AllowCheckboxAgainstTreeItem", false); m_MindMap.ShowCompletionCheckboxes = showDoneCheckboxes; // Remove for 7.3 ********************************* String fontName = FontName; int fontSize = 8; if (prefs.GetProfileBool("Preferences", "SpecifyTreeFont", false)) { fontName = prefs.GetProfileString("Preferences", "TreeFont", fontName); fontSize = prefs.GetProfileInt("Preferences", "FontSize", fontSize); } SetTaskFont(fontName, fontSize); // ************************************************ m_MindMap.SetStrikeThruDone(prefs.GetProfileBool("Preferences", "StrikethroughDone", true)); }
public void LoadPreferences(Preferences prefs, String key, bool appOnly) { if (!appOnly) { // private settings } bool taskColorIsBkgnd = prefs.GetProfileBool("Preferences", "ColorTaskBackground", false); m_MindMap.TaskColorIsBackground = taskColorIsBkgnd; bool showParentsAsFolders = prefs.GetProfileBool("Preferences", "ShowParentsAsFolders", false); m_MindMap.ShowParentsAsFolders = showParentsAsFolders; bool showDoneCheckboxes = prefs.GetProfileBool("Preferences", "AllowCheckboxAgainstTreeItem", false); m_MindMap.ShowCompletionCheckboxes = showDoneCheckboxes; m_MindMap.SetStrikeThruDone(prefs.GetProfileBool("Preferences", "StrikethroughDone", true)); }