private void RePopulateTreeView()
{
_guiController.ProjectTree.RemoveAllChildNodes(this, TOP_LEVEL_COMMAND_ID);
_guiController.ProjectTree.StartFromNode(this, TOP_LEVEL_COMMAND_ID);
int index = 0;
foreach (Translation item in _agsEditor.CurrentGame.Translations)
{
AddTreeLeafForTranslation("Trl" + index, item);
index++;
}
/*
if (_documents.ContainsValue(_guiController.ActivePane))
{
FontEditor editor = (FontEditor)_guiController.ActivePane.Control;
_guiController.ProjectTree.SelectNode(this, "Trl" + editor.ItemToEdit.ID);
}
else*/ if (_agsEditor.CurrentGame.Translations.Count > 0)
{
_guiController.ProjectTree.SelectNode(this, "Trl0");
}
}