private void InitCommits()
{
if (this.CommitNeedsRefresh())
{
if (AssetServer.GetAssetServerError() == string.Empty)
{
this.sharedCommits = ASCommitWindow.GetCommits();
this.sharedDeletedItems = AssetServer.GetLocalDeletedItems();
}
else
{
this.sharedCommits = new AssetsItem[0];
this.sharedDeletedItems = new AssetsItem[0];
}
}
this.pv.Clear();
this.pv.AddAssetItems(this.sharedCommits);
this.pv.AddAssetItems(this.sharedDeletedItems);
this.pv.SetLineCount();
this.pv.selectedItems = new bool[this.pv.lv.totalRows];
this.pv.initialSelectedItem = -1;
AssetServer.ClearRefreshCommit();
}