public void TestLoadStates()
        {
            //instansiate the presenter.
            var presenter = new DemoPresenter(_view);

            //tell the presenter to get the states
            presenter.LoadStates();
        }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     //create the presenter & pass it a reference to ourselves. ( this form inherits the IDemoView interface )
     try { _presenter = new DemoPresenter(this); }
     catch (Exception err)
     {
         System.Diagnostics.Debug.WriteLine(err.ToString());
         this.Text = "Could not instantiate presenter object.";
         this.cboStates.Enabled = false;
         this.btnLoadStates.Enabled = false;
         this.btnLoadStatesAsync.Enabled = false;
         //this.button1.Enabled = false;
     }
     
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     _presenter = new DemoPresenter(this);
 }