Add() публичный Метод

public Add ( ScmRepository f ) : int
f ScmRepository
Результат int
Пример #1
0
        public static SvnFolderCollection ReadSvnFolders()
        {
            SvnFolderCollection folders = new SvnFolderCollection();

            for (int i = 1;; i++)
            {
                string s = iniFile.ReadString("Folders", "Folder" + i);
                if (s.Length == 0)
                {
                    break;
                }

                folders.Add(ScmRepository.Deserialize(s));
            }

            return(folders);
        }
Пример #2
0
        private void UpdateListView(ScmRepository folder, ScmRepositoryStatus folderStatus, DateTime statusTime)
        {
            int i = folders.IndexOf(folder);

            if (i < 0)
            {
                return;
            }

            if (statusTime < folder.StatusUpdateTime)
            {
                return;
            }

            if (folder.Status != folderStatus)
            {
                folder.Status = folderStatus;
                listViewFolders.Items[i].ImageKey = folder.IconName;

                if ((folderStatus == ScmRepositoryStatus.NeedUpdate) ||
                    (folderStatus == ScmRepositoryStatus.NeedUpdate_Modified))
                {
                    newNonUpdatedFolders.Add(folder);
                    UpdateTray(true);
                }
                else
                {
                    UpdateTray(false);
                }

                // Refresh buttons
                listViewFolders_SelectedIndexChanged(null, null);
            }
            else
            {
                folder.Status = folderStatus;                           // Update status time only
            }
        }
Пример #3
0
        public static SvnFolderCollection ReadSvnFolders()
        {
            SvnFolderCollection folders = new SvnFolderCollection();

            for (int i = 1;; i++)
            {
                string s = iniFile.ReadString ("Folders", "Folder" + i);
                if (s.Length == 0) break;

                folders.Add (ScmRepository.Deserialize (s));
            }

            return folders;
        }