예제 #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);
        }
예제 #2
0
 void CloseRepository(Repository r)
 {
     ChangesWatcher.End();
     Repository.Dispose();
     Repository = null;
 }