示例#1
0
        //
        ////Akhir Tombol Ubah
        //


        //
        ////Tombol Refresh
        //
        //private void radButtonRefresh_Click(object sender, EventArgs e)
        //{
        //    BindDataTU();
        //    BindDataSiswa();
        //    BindDataPembayaran();
        //    BindDataSurat();
        //    BindDataDaftar();
        //    BindDataTabungan();
        //}

        //
        ////Akhir Tombol Refresh
        //

        //
        ////Tombol Tambah
        //

        private void radButtonTambah_Click(object sender, EventArgs e)
        {
            if (tombol == "tu")
            {
                TambahTU tambahTU = new TambahTU();
                tambahTU.ShowDialog();
                BindDataTU();
            }
            else if (tombol == "siswa")
            {
                TambahSiswa tambahSiswa = new TambahSiswa();
                tambahSiswa.ShowDialog();
                BindDataSiswa();
            }
            else if (tombol == "pembayaran")
            {
                DataSiswa siswa = new DataSiswa();
                siswa.idTU   = idTU;
                siswa.button = tombol;
                siswa.ShowDialog();
                BindDataPembayaran();
            }
            else if (tombol == "surat")
            {
                TambahSurat surat = new TambahSurat();
                surat.idTU = idTU;
                surat.ShowDialog();
                BindDataSurat();
            }
            else if (tombol == "pendaftaran")
            {
                DataSiswa siswa = new DataSiswa();
                siswa.idTU   = idTU;
                siswa.button = tombol;
                siswa.ShowDialog();
                BindDataDaftar();
            }
            else if (tombol == "tabungan")
            {
                DataSiswa siswa = new DataSiswa();
                siswa.idTU   = idTU;
                siswa.button = tombol;
                siswa.ShowDialog();
                BindDataTabungan();
            }
            else if (tombol == "tabungankeluar")
            {
                DataSiswa siswa = new DataSiswa();
                siswa.idTU   = idTU;
                siswa.button = tombol;
                siswa.ShowDialog();
                BindDataTabunganKeluar();
            }
        }
示例#2
0
 private void radButtonTambah_Click(object sender, EventArgs e)
 {
     if (tombol == "tu")
     {
         TambahTU tambahTU = new TambahTU();
         tambahTU.ShowDialog();
     }
     else if (tombol == "siswa")
     {
         TambahSiswa tambahSiswa = new TambahSiswa();
         tambahSiswa.ShowDialog();
     }
     else if (tombol == "pembayaran")
     {
         DataSiswa siswa = new DataSiswa();
         siswa.idTU = idTU;
         siswa.button = tombol;
         siswa.ShowDialog();
     }
     else if (tombol == "surat")
     {
         TambahSurat surat = new TambahSurat();
         surat.idTU = idTU;
         surat.ShowDialog();
     }
     else if (tombol == "pendaftaran")
     {
         DataSiswa siswa = new DataSiswa();
         siswa.idTU = idTU;
         siswa.button = tombol;
         siswa.ShowDialog();
     }
     else if (tombol == "tabungan")
     {
         DataSiswa siswa = new DataSiswa();
         siswa.idTU = idTU;
         siswa.button = tombol;
         siswa.ShowDialog();
     }
 }