Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     status = 'u';
     if (tabControl1.SelectedTab.Equals(tabPage1))
     {
         id = listView1.SelectedItems[0].Text;
         PasienForm form = new PasienForm();
         form.Show();
     }
     else if (tabControl1.SelectedTab.Equals(tabPage2))
     {
         id = listView2.SelectedItems[0].Text;
         DokterForm form = new DokterForm();
         form.Show();
     }
     else if (tabControl1.SelectedTab.Equals(tabPage3))
     {
         id = listView4.SelectedItems[0].Text;
         PenyakitForm form = new PenyakitForm();
         form.Show();
     }
     else if (tabControl1.SelectedTab.Equals(tabPage4))
     {
         id = listView3.SelectedItems[0].Text;
         TransaksiForm form = new TransaksiForm();
         form.Show();
     }
 }
Ejemplo n.º 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     status = 'c';
     if (tabControl1.SelectedTab.Equals(tabPage1))
     {
         PasienForm form = new PasienForm();
         form.Show();
     }
     else if (tabControl1.SelectedTab.Equals(tabPage2))
     {
         DokterForm form = new DokterForm();
         form.Show();
     }
     else if (tabControl1.SelectedTab.Equals(tabPage3))
     {
         PenyakitForm form = new PenyakitForm();
         form.Show();
     }
     else if (tabControl1.SelectedTab.Equals(tabPage4))
     {
         TransaksiForm form = new TransaksiForm();
         form.Show();
     }
 }