1. private void alterCmpd1()
  2. {
  3. EventHandler AlterEvent = AlterCompound1_Action;
  4. if (AlterEvent != null) AlterEvent(this, EventArgs.Empty);
  5. }
  6.  
  7. public event EventHandler AlterCompound1_Action;
  8.  
  9. AlertEvent(this, EventArgs.Empty);
  10.  
  11. public MainPresenter(IMainView view, IModel model)
  12. {
  13. this.view = view;
  14. this.view.AlterCompound1_Action += new EventHandler(view_AlterCompound1);
  15. this.model = model;
  16. view.Show();
  17. }
  18.  
  19. void view_AlterCompound1(object sender, EventArgs e)
  20. {
  21. // I commented out this code, on the off
  22. // chance that it was affecting things. Still no luck.
  23. }
  24.  
  25. private void AlterCompound1_Action(object, EventArgs e)
  26. {
  27. throw new NotImplementedException();
  28. }