Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 /// <summary>
 /// //Gets presenter instance
 /// </summary>
 public Overview()
 {
     InitializeComponent();
     _presenter = Presenter.Presenter.Getinstance();
 }
Exemplo n.º 5
0
 public View()
 {
     InitializeComponent();
     var presenter = new Presenter.Presenter(this);
 }