private void frmOPDetails_Load(object sender, EventArgs e) { OrderOfPayment OP = new OrderOfPayment(); Dictionary<string,string> data = OP.getOPDataWOOR(OPNo); mtOPNo.Text = "" + OPNo; mtPayor.Text = data["Payor"]; mtTotal.Text = data["Amount"]; mtDateIssued.Text = data["DateIssued"]; mtPaid.Text = OP.getPaymentStatus(); mtOPType.Text = OP.getOPType(); this.ControlBox = true; string[][] particulars = OP.getOrderOfPaymentItem(OPNo); new clsDB().Con().listViewTransferData(particulars, listView1); }