Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            deaf C = new deaf(textBox1.Text);

            if (C.deleteDeaf())
            {
                MessageBox.Show("deaf is deleted");
                textBox1.Text = "";
                this.Close();
            }
            else
            {
                MessageBox.Show("enter ID which you want to delete", "User information");
            }
        }
Beispiel #2
0
        private void buttonDelete_Click(object sender, EventArgs e)

        {
            deaf C = new deaf(textBox1.Text);

            if (C.deleteDeaf())
            {
                MessageBox.Show("You been delete!");
                textBox1.Text = "";
                this.Hide();
                FrmLogin dd = new FrmLogin();
                dd.Closed += (s, args) => this.Close();
                dd.Show();
            }
            else
            {
                MessageBox.Show("enter ID which you want to delete", "User information");
            }
        }