Example #1
0
        public Repository OpenRepository(string path)
        {
            if (Repository != null)
            {
                CloseRepository(Repository);
            }
            Repository = new Repository(path);
            Program.GetInstance().StashingManager.SetRepository(Repository);
            InvokeChange();
            ChangesWatcher.Watch(path);

            return(Repository);
        }
Example #2
0
 void CloseRepository(Repository r)
 {
     ChangesWatcher.End();
     Repository.Dispose();
     Repository = null;
 }