Example #1
0
 public static CTHD getInstance()
 {
     if (instance == null)
     {
         instance = new CTHD();
     }
     return(instance);
 }
        private void myListViewHistory_ItemClick(object sender, EventArgs e)
        {
            //id of customer who are clicked in table
            string id = this.listviewHistoryBuy.SelectedItems[0].SubItems[1].Text;

            billDetails = BillController.GetBillDetailsByBillID(id);
            CTHD.getInstance().SetBillDetails(billDetails);
            CTHD.getInstance().LoadInfo();
            CTHD.getInstance().Show();
        }