public void Set(PoContext context, string text) { switch (context) { case PoContext.MessageId: { // If the MessageId has been set to an empty string and now gets set again // before flushing the values should be reset. if (string.IsNullOrEmpty(MessageId)) { _values.Clear(); } MessageId = text; break; } case PoContext.MessageContext: MessageContext = text; break; case PoContext.Translation: _values.Add(text); break; case PoContext.Text: AppendText(text); return; // we don't want to set context to Text } _context = context; }
public void Set(PoContext context, string text) { switch (context) { case PoContext.MessageId: MessageId = text; break; case PoContext.MessageContext: MessageContext = text; break; case PoContext.Translation: _values.Add(text); break; case PoContext.Text: AppendText(text); return; // we don't want to set context to Text } _context = context; }
public PolinesController(PoContext context) { _context = context; }
public ItemsController(PoContext context) { _context = context; }
public PurchaseOrdersController(PoContext context) { _context = context; }
//controller is dependant on context, so it must be passed in public EmployeesController(PoContext context) { _context = context; }