Exemplo n.º 1
0
        private void removeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "Deleting ...";
            string str   = Upd();
            Form2  form2 = new Form2(str);

            form2.StartPosition = FormStartPosition.CenterParent;
            form2.ShowDialog(this);
            toolStripStatusLabel1.Text = "Deletion canceled";
            if (form2.DialogResult == DialogResult.OK)
            {
                S.Del(form2.Res());
                toolStripStatusLabel1.Text = "The interval was successfully deleted";
                UpdLast();
            }
        }