public RecentFileList() { Persister = new RegistryPersister(); MaxNumberOfFiles = 9; MaxPathLength = 50; MenuItemFormatOneToNine = "_{0}: {2}"; MenuItemFormatTenPlus = "{0}: {2}"; Loaded += (s, e) => HookFileMenu(); }
public RecentFileList() { Persister = new RegistryPersister(); MaxNumberOfFiles = 20; MaxPathLength = 80; MenuItemFormatOneToNine = "_{0}: {2}"; MenuItemFormatTenPlus = "{0}: {2}"; this.Loaded += (s, e) => HookFileMenu(); }
/// <summary> /// Initializes a new instance of the <see cref="RecentFileList"/> class. /// </summary> public RecentFileList() { Log.Info("Initializing the registry persister"); persister = new RegistryPersister(); MaxNumberOfFiles = 9; MaxPathLength = 50; MenuItemFormatOneToNine = "_{0}: {2}"; MenuItemFormatTenPlus = "{0}: {2}"; Loaded += (s, e) => hookFileMenu(); }
public RecentFileList() { if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) Persister = new RegistryPersister(); else Persister = new XmlPersister(); MaxNumberOfFiles = 9; MaxPathLength = 50; MenuItemFormatOneToNine = "_{0}: {2}"; MenuItemFormatTenPlus = "{0}: {2}"; this.Loaded += new RoutedEventHandler(RecentFileList_Loaded); //this.Loaded += ( s, e ) => HookFileMenu(); }
public RecentFileList() { if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { Persister = new RegistryPersister(); } else { Persister = new XmlPersister(); } MaxNumberOfFiles = 9; MaxPathLength = 50; MenuItemFormatOneToNine = "_{0}: {2}"; MenuItemFormatTenPlus = "{0}: {2}"; this.Loaded += new RoutedEventHandler(RecentFileList_Loaded); //this.Loaded += ( s, e ) => HookFileMenu(); }
//----------------------------------------------------------------------------------------- public RecentFilesMgr() { Persister = new RegistryPersister(); MaxNumberOfFiles = 10; }
public void UseRegistryPersister(string key) { Persister = new RegistryPersister(key); }
public void UseRegistryPersister() { Persister = new RegistryPersister(); }
public RecentFileRepository() { Persister = new RegistryPersister(Settings.Default.MaxEntriesRencentTournaments); }
public RecentFileList() { Persister = new RegistryPersister(); MaxNumberOfFiles = 5; MaxPathLength = 39; }