예제 #1
0
 public WhitelistManagementControl(IWhitelistManagementPresenter presenter)
 {
     _presenter = presenter ?? throw new ArgumentNullException(nameof(presenter));
     InitializeComponent();
     _presenter.Attach(this);
     _presenter.Load();
     addressAddButton.Enabled = false;
 }
 public WhitelistManagementControl(IWhitelistManagementPresenter presenter)
 {
     _validationRule = new AddressValidationRule();
     _presenter      = presenter;
     InitializeComponent();
     _presenter.Attach(this);
     _presenter.Load();
     addressAddButton.Enabled = false;
 }