for (int i = 0; i < textBox.Lines.Count; i++)
{
label.Text = (Convert.ToInt32(label.Text) + 1).ToString();
}
public class People : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string _firstName;
public string FirstName
{
get { return _firstName; }
set
{
_firstName = value;
PropertyChanged(this, new PropertyChangedEventArgs("FirstName"));
}
}
}