private bool CanExecuteStoreTray() { try { return(Operation == null && _dbservicewms != null && _dbservicewms.CanStoreTray(_dbservicewms.GetParameter("Place.IOStation"))); } catch (Exception e) { _warehouse.AddEvent(Database.Event.EnumSeverity.Error, Database.Event.EnumType.Exception, string.Format("{0}.{1}: {2}", this.GetType().Name, (new StackTrace()).GetFrame(0).GetMethod().Name, e.Message)); return(false); } }