Exemple #1
0
        private void ShowApplication()
        {
            this.setup.DisposeView();
            this.setup = null;

            var model = new Model();

            this.view = new View(model);
            var controller = new Controller(model, view);

            view.ShowView();
        }
Exemple #2
0
        public Main()
        {
            var setupView = new ServerSetupWindow();

            setupView.Show();
            var setupModel = new ServerSetup();

            this.setup            = new ServerSetupController(setupView, setupModel);
            this.setup.Connected += this.ShowApplication;

            Application.Run();
        }