private void btnKeluar_Click(object sender, EventArgs e) { frmInputKas frm = new frmInputKas(TipeTransaksi.Out); frm.StartPosition = FormStartPosition.CenterScreen; frm.MaximizeBox = false; frm.MinimizeBox = false; frm.FormElement.TitleBar.TitlePrimitive.Font = new System.Drawing.Font("Lucida Bright", 12, FontStyle.Bold); frm.ShowDialog(this); }
private void AddPayment() { frmInputKas frm = (frmInputKas)this.Owner; RadGridView grid = frm.getTable(); GridViewRowInfo row = grid.Rows.AddNew(); row.Cells["account"].Value = rddAcc.SelectedValue; row.Cells["tipe"].Value = rddPayment.SelectedValue; row.Cells["unit"].Value = txtUnit.Value; row.Cells["value"].Value = txtValue.Value; row.Cells["tanggal"].Value = dtpTanggal.Value; row.Cells["keterangan1"].Value = txtKet1.Text; row.Cells["keterangan2"].Value = txtket2.Text; row.Cells["keterangan3"].Value = txtket3.Text; row.Cells["category"].Value = (rbtnMasuk.IsChecked); }