Ejemplo n.º 1
0
        public static void Main()
        {
            using (var introForm = new IntroForm())
            {
                introForm.ShowDialog();
                Global.ServerName    = introForm.ServerName;
                Global.IsLocalServer = introForm.IsLocalServer;
                if (introForm.ClearExistingChunks && Global.IsLocalServer)
                {
                    Global.ClearExistingChunks = true;
                }
            }
            using (GameRenderer gameRenderer = new GameRenderer())
            {
                //Utilities.SetWindowTitle(example);
                IServer server;
                if (Global.IsLocalServer)
                {
                    server = new ServerLocal();
                }
                else
                {
                    server = new ServerRemote();
                }

                Server.Run(server);

                gameRenderer.Run(30.0);
            }
        }
        private void BtnKthehu_Click(object sender, EventArgs e)
        {
            IntroForm introF = new IntroForm();

            this.Hide();
            introF.FormClosed += Form_Closing_Handler;
            introF.Show();
        }
Ejemplo n.º 3
0
        private void FirstRunWizard_Load(object sender, EventArgs e)
        {
            IntroForm frm = new IntroForm();

            frm.Dock = DockStyle.Fill;
            this.panel1.Controls.Add(frm);
            settings.StartDelayedUpdate();
        }
Ejemplo n.º 4
0
        public MainController(ITextVoicer textVoicer, IVoiceRecognizer voiceRecognizer
                              , IImageClassificator imageClassificator, IntroForm introForm, ShopLens shopLens)
        {
            _textVoicer       = textVoicer;
            _voiceRecognizer  = voiceRecognizer;
            _imageClassifying = imageClassificator;
            _introForm        = introForm;
            _shopLens         = shopLens;
            ShoppingList      = new ShoppingListForm(this);
            Cart = new CartForm(this);

            _introForm.MainController = this;
            _shopLens.MainController  = this;

            shoppingList = new List <ShoppingItem>();
        }