private void ToolStripButtonClear_Click(object sender, EventArgs e) { if (MessageBox.Show("Ви дійсно бажаєте очистити?", "Запитання", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { IntegralBindingSource.Clear(); } }
private void ToolStripButtonDelete_Click(object sender, EventArgs e) { if (MessageBox.Show("Ви дійсно бажаєте видалити запис?", "Запитання", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { IntegralBindingSource.RemoveCurrent(); } }
private void ToolStripButtonAdd_Click(object sender, EventArgs e) { LibIntegral.Integral integral = new LibIntegral.Integral(); IntegralForm carForm = new IntegralForm(integral); if (carForm.ShowDialog() == DialogResult.OK) { IntegralBindingSource.Add(integral); } }