예제 #1
0
        static void Main(string[] args)
        {
            Repository repo = new Repository("myConnectionString");

            repo.Database.CreateIfNotExists();
            ConsoleWrapper            cw  = new ConsoleWrapper();
            QueueFactory              qf  = new QueueFactory();
            MyTupleFactory            mtf = new MyTupleFactory();
            ClientFactory             cf  = new ClientFactory();
            Pomocne_funkcijeSubscribe pfs = new Pomocne_funkcijeSubscribe(mtf, qf);
            Pomocne_funkcijeCreate    pfc = new Pomocne_funkcijeCreate(mtf, qf);

            Pomocne_funkcijeUpdate.Pomocne_funkcijeUpdate pfu = new Pomocne_funkcijeUpdate.Pomocne_funkcijeUpdate();
            Serverr server = new Serverr(cf, repo);
            Metode  metode = new Metode(server, cw);
            Meni    meni   = new Meni(pfc, pfs, pfu);
            Model   m      = new Model();
            Clientt c      = new Clientt();


            server.IscitajIzBazeNaPocetku();

            meni.Menu(cw, metode);
        }
예제 #2
0
 public MapArea(ConsoleWrapper console) : this()
 {
     this._console = console;
 }
예제 #3
0
 public ConsoleMenu(ConsoleWrapper console)
 {
     this._console = console;
 }
예제 #4
0
 public MessageArea(ConsoleWrapper console)
 {
     this._console = console;
 }