Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form obj1 = new insertwriter();

            obj1.Show();
        }
Пример #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (wName.Text == "" || aName.Text == "" || epcheck.Checked == false && moviecheck.Checked == false)
     {
         MessageBox.Show("Empty field", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         try{
             if (epcheck.Checked == true)
             {
             }
             else if (moviecheck.Checked == true)
             {
             }
             else
             {
             }
             DialogResult d;
             d = MessageBox.Show("Record Entered successfully\nwould you like to Insert one more record?", "Success", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
             if (d == DialogResult.Yes)
             {
                 Close();
                 Form obj = new insertwriter();
                 obj.Show();
             }
             else
             {
                 Close();
                 Form obj = new insertmain();
                 obj.Show();
             }
         }
         catch
         {
             MessageBox.Show("Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }