Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
        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();
            }
        }
Exemplo n.º 4
0
        private void Update()
        {
            Undo.GetRecords(newUndos, out newUndoCursorPos);

            if (undos.SequenceEqual(newUndos) && undoCursorPos == newUndoCursorPos)
            {
                return;
            }

            undos         = new List <string>(newUndos);
            undoCursorPos = newUndoCursorPos;

            Repaint();
        }
Exemplo n.º 5
0
        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();
        }