保留中の変更リストがリストされている P4V のものとほとんど同じツリービューを作成する必要があります。
保留中の変更リストをツリービューに追加でき、使用する場合は子ノードを追加できGetFileName()
ますが、ファイルが必要LocalPath
で、試してみると"Object reference not set to an instance of object".
IList<Changelist> lista;
Options opcoes = new Options(ChangesCmdFlags.FullDescription, con.Cliente.Name, 100, ChangeListStatus.Pending, con.Usuario);
lista = new List<Changelist>();
lista = con.Repositorio.GetChangelists(opcoes);
for (int i = 0; i < lista.Count; i++ )
{
Changelist change = new Changelist();
TreeNode node = new TreeNode();
change = lista[i];
change.initialize(con.conexao);
node = tre.Nodes.Add(change.Id.ToString());
FileSpec arquivoSpec = new FileSpec(new LocalPath(PathSpec.UnescapePath("")), Revision.Have);
for (int arquivoAtual = 0; arquivoAtual < change.Files.Count; arquivoAtual++)
{
node.Nodes.Add(change.Files[arquivoAtual].LocalPath.Path);
}
}
どんな助けでも大歓迎です。