public FormPOSinterface(List <Product> item) { InitializeComponent(); formFunctionPointer += new functioncall(calculateSubTotal); ItemCart n = new ItemCart(); n.userFunctionPointer = formFunctionPointer; items = item; }
//static FormDashboard _obj; //public static FormDashboard Instance //{ // get // { // if (_obj == null) // { // _obj = new FormDashboard(); // } // return _obj; // } //} public FormPOSinterface() { InitializeComponent(); formFunctionPointer += new functioncall(calculateSubTotal); ItemCart n = new ItemCart(); n.userFunctionPointer = formFunctionPointer; //items = emp.loadProducts(); }