Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MinerForm      minerView = new MinerForm();
            MinerPresenter presenter = new MinerPresenter(minerView);

            presenter.Start();
            Application.Run(minerView);
        }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var        presenter = new MinerPresenter();
            VanilaGame vgame     = new VanilaGame();

            presenter.ConnectGame(new ConfigItem(vgame.EasyConfig, "Легкий"));
            presenter.ConnectGame(new ConfigItem(vgame.NormalConfig, "Средний"));
            presenter.ConnectGame(new ConfigItem(vgame.HardConfig, "Тяжелый"));
            presenter.ConnectGame(new ConfigItem(vgame.AbsoluteConfig, "Абсолютный"));
            //TestCommnet
            presenter.SetView(new MainForm());
            presenter.StartGame();
        }
Ejemplo n.º 3
0
 public void SetPresenter(MinerPresenter minerPresenter)
 {
     _presenter = minerPresenter;
 }