Exemple #1
0
 bool CheckWorkbench()
 {
     if (PmsWorkbench != null) return true;
     var waiterId = new ManualInput("Waiter", 3).GetNumber();
     if (waiterId > 0)
     {
         PmsWorkbench = WorkbenchProvider.ClaimWorkbench(waiterId);
     }
     return PmsWorkbench != null;
 }
Exemple #2
0
 public void FreeWorkbench(PmsWorkbench workbench)
 {
     if(workbench==null) throw new InvalidWorkbenchException();
 }