private void Update() { Undo.GetRecords(this.newUndos, this.newRedos); if (!this.undos.SequenceEqual <string>(this.newUndos) || !this.redos.SequenceEqual <string>(this.newRedos)) { this.undos = new List <string>(this.newUndos); this.redos = new List <string>(this.newRedos); base.Repaint(); } }
private void Update() { Undo.GetRecords(this.newUndos, this.newRedos); if (this.undos.SequenceEqual <string>((IEnumerable <string>) this.newUndos) && this.redos.SequenceEqual <string>((IEnumerable <string>) this.newRedos)) { return; } this.undos = new List <string>((IEnumerable <string>) this.newUndos); this.redos = new List <string>((IEnumerable <string>) this.newRedos); this.Repaint(); }
private void Update() { Undo.GetRecords(this.newUndos, this.newRedos); bool flag = this.undos.SequenceEqual(this.newUndos) && this.redos.SequenceEqual(this.newRedos); if (!flag) { this.undos = new List <string>(this.newUndos); this.redos = new List <string>(this.newRedos); base.Repaint(); } }
private void Update() { Undo.GetRecords(newUndos, out newUndoCursorPos); if (undos.SequenceEqual(newUndos) && undoCursorPos == newUndoCursorPos) { return; } undos = new List <string>(newUndos); undoCursorPos = newUndoCursorPos; Repaint(); }
private void Update() { Undo.GetRecords(newUndos, newRedos); bool equal = undos.SequenceEqual(newUndos) && redos.SequenceEqual(newRedos); if (equal) { return; } undos = new List <string>(newUndos); redos = new List <string>(newRedos); Repaint(); }