Exemplo n.º 1
0
 private void ToolStripButtonClear_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Ви дійсно бажаєте очистити?", "Запитання",
                         MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         IntegralBindingSource.Clear();
     }
 }
Exemplo n.º 2
0
 private void ToolStripButtonDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Ви дійсно бажаєте видалити запис?", "Запитання",
                         MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         IntegralBindingSource.RemoveCurrent();
     }
 }
Exemplo n.º 3
0
        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);
            }
        }