Exemplo n.º 1
0
        private void checkOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form3 f3 = new Form3();

            f3.ShowDialog();
            f3.Focus();
        }
Exemplo n.º 2
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     if (txtKTP.Text == "" && txtSIM.Text == "")
     {
         MessageBox.Show("Mohon lengkapi data diatas!", "Data tidak lengkap");
     }
     else
     {
         if (txtNama.Text == "" || txtIDTamu.Text == "" || txtAlamat.Text == "" || txtTelp.Text == "")
         {
             MessageBox.Show("Mohon lengkapi data diatas!", "Data tidak lengkap");
         }
         else
         {
             Form3 f3 = new Form3();
             f3.ShowDialog();
             f3.Focus();
         }
     }
 }