private void Button2_Click(object sender, RoutedEventArgs e) { int count = ++button2ClickedNum; string s = count == 1 ? "" : "s"; textBlock.Text = string.Format("Button2 is clicked {0} time{1}.", count.ToString(), s); } }