private void CmdPrint_Click(object sender, EventArgs e) { //PrintNota(); if (this.Caller is FrmPOS) { POS.FrmPOS frmCaller = (POS.FrmPOS) this.Caller; frmCaller.cekcetak(); } else if (this.Caller is FrmPOS0401) { POS.FrmPOS0401 frmCaller = (POS.FrmPOS0401) this.Caller; frmCaller.cekcetak(); } }