/// <summary> /// Initializes form, adds the instance of the form to the Presenter, /// and populates the Comboboxes /// </summary> public MainWindow() { InitializeComponent(); FromBox.Enabled = ToBox.Enabled = OKButton.Enabled = false; _presenter = Presenter.Presenter.GetInstance(); _presenter.MainForm = this; }
private static void Main(string[] args) { var gui = new Gui(); var model = new VierGewinntSpiel(); var presenter = new Presenter.Presenter(gui, model); presenter.Run(); gui.Run(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var projectSecurity = new ProjectSecurity(); Presenter.Presenter presenter = new Presenter.Presenter(projectSecurity, new SecurityManager(), new FileManager.FileManager()); Application.Run(projectSecurity); }
/// <summary> /// //Gets presenter instance /// </summary> public Overview() { InitializeComponent(); _presenter = Presenter.Presenter.Getinstance(); }
public View() { InitializeComponent(); var presenter = new Presenter.Presenter(this); }