public ASUpdateWindow(ASMainWindow parentWin, Changeset[] changesets) { this.changesets = changesets; this.parentWin = parentWin; this.lv = new ListViewState(changesets.Length, 5); this.pv.lv = new ListViewState(0, 5); this.messageFirstLines = new string[changesets.Length]; for (int index = 0; index < changesets.Length; ++index) this.messageFirstLines[index] = changesets[index].message.Split('\n')[0]; this.totalUpdates = changesets.Length.ToString() + (changesets.Length != 1 ? " Updates" : " Update"); }
public void AddAssetItems(Changeset assets) { foreach (ChangesetItem item in assets.items) { this.AddAssetItem(item.guid, item.fullPath, item.assetIsDir != 0, item.changeFlags, assets.changeset); } Array.Sort<ParentViewFolder>(this.folders, new Comparison<ParentViewFolder>(ParentViewState.CompareViewFolder)); for (int i = 0; i < this.folders.Length; i++) { Array.Sort<ParentViewFile>(this.folders[i].files, new Comparison<ParentViewFile>(ParentViewState.CompareViewFile)); } }
public ASUpdateWindow(ASMainWindow parentWin, Changeset[] changesets) { this.changesets = changesets; this.parentWin = parentWin; this.lv = new ListViewState(changesets.Length, 5); this.pv.lv = new ListViewState(0, 5); this.messageFirstLines = new string[changesets.Length]; for (int i = 0; i < changesets.Length; i++) { this.messageFirstLines[i] = changesets[i].message.Split(new char[] { '\n' })[0]; } this.totalUpdates = changesets.Length.ToString() + ((changesets.Length != 1) ? " Updates" : " Update"); }
public ASUpdateWindow(ASMainWindow parentWin, Changeset[] changesets) { float[] relativeSizes = new float[] { 50f, 50f }; int[] minSizes = new int[] { 50, 50 }; this.horSplit = new SplitterState(relativeSizes, minSizes, null); float[] singleArray2 = new float[] { 60f, 30f }; int[] numArray2 = new int[] { 0x20, 0x20 }; this.vertSplit = new SplitterState(singleArray2, numArray2, null); this.changesets = changesets; this.parentWin = parentWin; this.lv = new ListViewState(changesets.Length, 5); this.pv.lv = new ListViewState(0, 5); this.messageFirstLines = new string[changesets.Length]; for (int i = 0; i < changesets.Length; i++) { char[] separator = new char[] { '\n' }; this.messageFirstLines[i] = changesets[i].message.Split(separator)[0]; } this.totalUpdates = changesets.Length.ToString() + ((changesets.Length != 1) ? " Updates" : " Update"); }
public void AddAssetItems(Changeset assets) { ChangesetItem[] items = assets.items; for (int i = 0; i < items.Length; i++) { ChangesetItem changesetItem = items[i]; this.AddAssetItem(changesetItem.guid, changesetItem.fullPath, changesetItem.assetIsDir != 0, changesetItem.changeFlags, assets.changeset); } ParentViewFolder[] arg_70_0 = this.folders; if (ParentViewState.<>f__mg$cache2 == null) { ParentViewState.<>f__mg$cache2 = new Comparison<ParentViewFolder>(ParentViewState.CompareViewFolder); } Array.Sort<ParentViewFolder>(arg_70_0, ParentViewState.<>f__mg$cache2); for (int j = 0; j < this.folders.Length; j++) { ParentViewFile[] arg_A6_0 = this.folders[j].files; if (ParentViewState.<>f__mg$cache3 == null) { ParentViewState.<>f__mg$cache3 = new Comparison<ParentViewFile>(ParentViewState.CompareViewFile); } Array.Sort<ParentViewFile>(arg_A6_0, ParentViewState.<>f__mg$cache3); } }
public void RevertProject(int toRevision, Changeset[] changesets) { AssetServer.SetStickyChangeset(toRevision); this.asUpdateWin = new ASUpdateWindow(this, changesets); this.asUpdateWin.SetSelectedRevisionLine(0); this.asUpdateWin.DoUpdate(false); this.selectedPage = ASMainWindow.Page.Update; }
public void AddAssetItems(Changeset assets) { foreach (ChangesetItem changesetItem in assets.items) this.AddAssetItem(changesetItem.guid, changesetItem.fullPath, changesetItem.assetIsDir != 0, changesetItem.changeFlags, assets.changeset); Array.Sort<ParentViewFolder>(this.folders, new Comparison<ParentViewFolder>(ParentViewState.CompareViewFolder)); for (int index = 0; index < this.folders.Length; ++index) Array.Sort<ParentViewFile>(this.folders[index].files, new Comparison<ParentViewFile>(ParentViewState.CompareViewFile)); }
public void AddAssetItems(Changeset assets) { ChangesetItem[] items = assets.items; for (int i = 0; i < items.Length; i++) { ChangesetItem changesetItem = items[i]; this.AddAssetItem(changesetItem.guid, changesetItem.fullPath, changesetItem.assetIsDir != 0, changesetItem.changeFlags, assets.changeset); } Array.Sort<ParentViewFolder>(this.folders, new Comparison<ParentViewFolder>(ParentViewState.CompareViewFolder)); for (int j = 0; j < this.folders.Length; j++) { Array.Sort<ParentViewFile>(this.folders[j].files, new Comparison<ParentViewFile>(ParentViewState.CompareViewFile)); } }