SIL.FieldWorks.FieldWorks.ProjectNameChanged C# (CSharp) Метод

ProjectNameChanged() приватный статический Метод

Handles a project name change.
private static ProjectNameChanged ( SIL.FieldWorks.FDO.FdoCache sender ) : void
sender SIL.FieldWorks.FDO.FdoCache The FDO cache (should be the same as our static one).
Результат void
		private static void ProjectNameChanged(FdoCache sender)
		{
			Debug.Assert(sender == s_cache);
			// The ProjectId should have already been updated (as a result of the rename deep
			// in FDO because we pass the ProjectId by reference and it gets set in the BEP),
			// however, generally, we aren't guaranteed that this behavior actually takes place,
			// so we need to do it here to make sure our reference is updated.
			s_projectId.Path = s_cache.ProjectId.Path;
			// Update the path in the writing system manager so that it won't crash trying to
			// write to a nonexistent folder.
			var manager = s_cache.ServiceLocator.GetInstance<IWritingSystemManager>();
			manager.LocalStoreFolder = Path.Combine(s_projectId.ProjectFolder, "WritingSystemStore");
		}
		#endregion
FieldWorks