String context = string.Emty;
private void BtnForward_Click(object sender, RoutedEventArgs e)
{
//First Click
context = Abcd;
TextboxText.Text = context; //Abcd
//Second Click
TextboxText.Text = context; //new context = SADASD
//Third Forth Fift click new string context
}
//Now how i can go back 5th string 4th string 3 2 1th string
private void BtnBack_Click(object sender, RoutedEventArgs e)
{
//Fift Forth Third Second First Observed string will show in the textbox
// Reverse back previous string with sequence
TextBoxText.Text = context; // Will reverse/Go back in sequence
}
我怎么能回去串
即使前进前进字符串或和反向回来。我的英语不够好解释,但如果你不明白我说的话,请让我知道
阅读关于堆栈数据结构。 –