本文整理汇总了C#中IPreferenceFolder.AddChangeListener方法的典型用法代码示例。如果您正苦于以下问题:C# IPreferenceFolder.AddChangeListener方法的具体用法?C# IPreferenceFolder.AddChangeListener怎么用?C# IPreferenceFolder.AddChangeListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPreferenceFolder
的用法示例。
在下文中一共展示了IPreferenceFolder.AddChangeListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializePreference
//IPreferencesupplier
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) {
_originalFolder = folder;
_originalOptions = new TerminalOptions(folder);
_originalOptions.DefineItems(builder);
//defaultRenderProfileのリセットをする
_originalFolder.AddChangeListener(this);
}
示例2: InitializePreference
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) {
_originalFolder = folder;
_adapter = new CoreServicePreferenceAdapter(folder);
_adapter.DefineItems(builder);
AboutBoxUtil.InitPreference(builder, folder);
_windowTemplatePreference = builder.DefineFolderArray(folder, this, "mainwindow");
_windowArrayPreference = folder.FindChildFolderArray("mainwindow");
Debug.Assert(_windowArrayPreference != null);
_windowPositionPreference = builder.DefineStringValue(_windowTemplatePreference, "position", "", null);
_windowSplitFormatPreference = builder.DefineStringValue(_windowTemplatePreference, "format", "", null);
_toolBarFormatPreference = builder.DefineStringValue(_windowTemplatePreference, "toolbar", "", null);
_tabRowCountPreference = builder.DefineIntValue(_windowTemplatePreference, "tabrowcount", 1, null);
//add listener
folder.AddChangeListener(new ChangeListener(_adapter));
}
示例3: InitializePreference
public void InitializePreference(IPreferenceBuilder builder, IPreferenceFolder folder) {
_keyBindNode = builder.DefineLooseNode(folder, _keyBind, "keybinds");
folder.AddChangeListener(this);
}