示例#1
0
 public RecentFileList()
 {
     Persister = new RegistryPersister();
     MaxNumberOfFiles = 9;
     MaxPathLength = 50;
     MenuItemFormatOneToNine = "_{0}:  {2}";
     MenuItemFormatTenPlus = "{0}:  {2}";
     Loaded += (s, e) => HookFileMenu();
 }
示例#2
0
        public RecentFileList()
        {
            Persister = new RegistryPersister();

            MaxNumberOfFiles        = 20;
            MaxPathLength           = 80;
            MenuItemFormatOneToNine = "_{0}:  {2}";
            MenuItemFormatTenPlus   = "{0}:  {2}";

            this.Loaded += (s, e) => HookFileMenu();
        }
示例#3
0
        /// <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();
        }
示例#4
0
		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();
		}
示例#5
0
        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();
        }
示例#6
0
        //-----------------------------------------------------------------------------------------

        public RecentFilesMgr()
        {
            Persister = new RegistryPersister();

            MaxNumberOfFiles = 10;
        }
示例#7
0
 public void UseRegistryPersister(string key)
 {
     Persister = new RegistryPersister(key);
 }
示例#8
0
 public void UseRegistryPersister()
 {
     Persister = new RegistryPersister();
 }
示例#9
0
 public void UseRegistryPersister(string key)
 {
     Persister = new RegistryPersister(key);
 }
示例#10
0
 public void UseRegistryPersister()
 {
     Persister = new RegistryPersister();
 }
示例#11
0
 public RecentFileRepository()
 {
     Persister = new RegistryPersister(Settings.Default.MaxEntriesRencentTournaments);
 }
示例#12
0
 public RecentFileList()
 {
     Persister = new RegistryPersister();
     MaxNumberOfFiles = 5;
     MaxPathLength = 39;
 }
示例#13
0
 public RecentFileList()
 {
     Persister        = new RegistryPersister();
     MaxNumberOfFiles = 5;
     MaxPathLength    = 39;
 }