public bool SignIn(DrawerFlag _flag, int _id, int _managerid, int _employeeid) { lock (this.syncRoot) { CashDrawer _drawer = null; if (TryGetDrawer(_flag, out _drawer, _id, _managerid)) { return(_drawer.SignIn(_employeeid, time)); } return(false); } }