pocorall.SCM_Notifier.MainForm.AddFolder C# (CSharp) Method

AddFolder() private method

private AddFolder ( string path ) : void
path string
return void
        private void AddFolder(string path)
        {
            if (!folders.ContainsPath(path))
            {
                ScmRepository repo = ScmRepository.create(path);

                if(repo !=null)
                {
                    folders.Add(repo);
                    listViewFolders.Items.Add(new ListViewItem(path, repo.IconName));
                    UpdateListViewFolderNames();

                    Config.SaveSvnFolders(folders);

                    UpdateTray(false);
                    BeginUpdateFolderStatuses();
                }
                else
                {
                    MessageBox.Show("This folder is not repository", "SCM Notifier", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            else
                SelectFolder(path);
        }
MainForm