Пример #1
0
        private void btnTagihan_Click(object sender, EventArgs e)
        {
            frmPLNPascaNominal frmNominal = new frmPLNPascaNominal();
            frmPLN             frm        = new frmPLN(frmNominal);

            frm.type          = "PASCA";
            frm.lblTitle.Text = "PLN PASCA BAYAR";
            frm.TopLevel      = false;
            //frm.pnlNominal.Visible = true;
            mainForm.pnlForm.Controls.Clear();
            mainForm.pnlForm.Controls.Add(frm);
            frm.BringToFront();
            frm.Show();


            frmNominal.TopLevel = false;
            frm.pnlNominal.Controls.Add(frmNominal);
            frmNominal.BringToFront();
            frmNominal.Show();
        }
Пример #2
0
        private void btnToken_Click(object sender, EventArgs e)
        {
            frmPLN           frm        = new frmPLN(null);
            frmPLNPraNominal frmNominal = new frmPLNPraNominal(frm);

            // Add panel plnpranominal
            frmNominal.TopLevel = false;
            frm.lblTitle.Text   = "PLN PRA BAYAR (TOKEN)";
            frm.pnlNominal.Controls.Clear();
            frm.pnlNominal.Controls.Add(frmNominal);
            frm.pnlNominal.Visible = true;

            frmNominal.BringToFront();
            frmNominal.Show();

            // add panel pln
            frm.type     = "PRA";
            frm.TopLevel = false;
            mainForm.pnlForm.Controls.Clear();
            mainForm.pnlForm.Controls.Add(frm);
            frm.BringToFront();

            frm.Show();
        }
Пример #3
0
 public frmPLNPraNominal(frmPLN frm)
 {
     InitializeComponent();
     frmpln = frm;
 }