예제 #1
0
 private void ButtonBack_Click(object sender, EventArgs e)
 {
     if (TextStkNew.Count != 0)
     {
         textBoxNew.Text = (string)TextStkNew.Peek();
         textBoxOld.Text = (string)TextStkOld.Peek();
         TextStkNew.Pop();
         TextStkOld.Pop();
     }
     else
     {
         textBoxNew.Text = "";
         textBoxOld.Text = "";
     }
 }
예제 #2
0
 new private void TextChanged()
 {
     TextStkNew.Push(textBoxNew.Text);
     TextStkOld.Push(textBoxOld.Text);
 }