예제 #1
0
        public void Add(string file)
        {
            int p = ProjectFiles.IndexOf(file);

            if (p == -1)
            {
                ProjectFiles.Insert(0, file);
            }
            else
            {
                string s = ProjectFiles[p];
                ProjectFiles.RemoveAt(p);

                ProjectFiles.Insert(0, file);
            }

            if (ProjectFiles.Count > Count)
            {
                ProjectFiles.Remove(ProjectFiles[Count]);
            }
            OnPropertyChanged("ProjectFiles");
        }