Ejemplo n.º 1
0
 public bool Equals(RecentFile a)
 {
     // Return true if the fields match:
     return base.Equals(a);
 }
Ejemplo n.º 2
0
        internal void AddToRecentFileList(string filePath)
        {
            if (string.IsNullOrEmpty(filePath))
                return;

            RecentFile recentFile = new RecentFile(filePath);
            RecentFile fileToBeRemoved = recentFiles.Find(item => item == recentFile);

            recentFiles.Remove(fileToBeRemoved);
            recentFiles.Add(recentFile);
            if (recentFiles.Count > 10)
                recentFiles.RemoveAt(0);
            RecentFile.Serialize(RecentFiles);
        }
Ejemplo n.º 3
0
 public bool Equals(RecentFile a)
 {
     // Return true if the fields match:
     return(base.Equals(a));
 }
Ejemplo n.º 4
0
        public void RemoveFromRecentFileList(string filePath)
        {
            if (string.IsNullOrEmpty(filePath))
                return;

            RecentFile recentFile = new RecentFile(filePath);
            RecentFile fileToBeRemoved = recentFiles.Find(item => item == recentFile);

            recentFiles.Remove(fileToBeRemoved);
            RecentFile.Serialize(RecentFiles);
        }