Esempio n. 1
0
 public StudentSystem(IIoEngine ioEngine)
 {
     this.students = new StudentsDatabase();
     this.commands = new Dictionary <string, ICommand>();
     this.commands.Add("Create", new CreateCommand());
     this.commands.Add("Show", new ShowCommand(ioEngine));
     this.ioEngine = ioEngine;
 }
Esempio n. 2
0
 public StudentSystem(IIoEngine ioEngine)
 {
     this.students = new StudentsDatabase();
     this.commands = new Dictionary <string, ICommand>
     {
         { "Create", new CreateCommand() },
         { "Show", new ShowCommand(ioEngine) },
         { "Delete", new DeleteCommand() }
     };
     this.ioEngine = ioEngine;
 }
Esempio n. 3
0
 public StudentSystem()
 {
     this.students = new StudentsDatabase();
 }