private void Add_button_Click(object sender, EventArgs e) { entiteState = EntiteState.Add; PhotoPic.Image = null; PanelConteiner.Enabled = true; personsBindingSource.Add(new Persons()); personsBindingSource.MoveLast(); FullName_textBox.Focus(); }
private void Edit_button_Click(object sender, EventArgs e) { entiteState = EntiteState.Changed; PanelConteiner.Enabled = true; FullName_textBox.Focus(); }