public RegState(MainClientContext context) : base(context) { Console.Clear(); _context = context; Console.Clear(); _input = new List <string>(); }
public EntryState(MainClientContext context) : base(context) { _context = context; _choice = new Dictionary <string, IStateFactory> { { "1", new AuthStateFactory() }, { "2", new RegStateFactory() } }; }
public UserMenuState(MainClientContext context) : base(context) { _context = context; _choice = new Dictionary <string, AbstractState> { { "1", new BillListState(_context) }, { "2", new CreateBillState(_context) }, { "3", new EntryState(_context) } }; }
public AuthState(MainClientContext context) : base(context) { _context = context; _input = new List <string>(); _choice = new Dictionary <string, IStateFactory> { { "1", new UserMenuStateFactory() }, { "2", new EntryStateFactory() }, { "3", new EntryStateFactory() } }; }
public BillMenuState(MainClientContext context) : base(context) { _context = context; _currentBill = _context.User.CurrentBill; _choice = new Dictionary <string, IStateFactory> { { "1", new TransferMenuFactory() }, { "2", new TransactionMenuFactory() }, { "3", new CloseBillMenuFactory() }, { "4", new BillListMenuFactory() } }; }
public BillListState(MainClientContext context) : base(context) { _context = context; }
public TransferMenuState(MainClientContext context) : base(context) { _context = context; _idBill = _context.User.CurrentBill.Id; _input = new List <string>(); }
public CreateBillState(MainClientContext context) : base(context) { _context = context; }
public CloseBillMenu(MainClientContext context) : base(context) { _context = context; }
public TransactionListMenu(MainClientContext context) : base(context) { _context = context; }
public override AbstractState CreateState(MainClientContext context) { return(new CloseBillMenu(context)); }
public override AbstractState CreateState(MainClientContext context) { return(new TransactionListMenu(context)); }
public override AbstractState CreateState(MainClientContext context) { return(new TransferMenuState(context)); }
public override AbstractState CreateState(MainClientContext context) { return(new BillListState(context)); }
abstract public AbstractState CreateState(MainClientContext context);
public AbstractState(MainClientContext context) { _context = context; }