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(); }
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(); }