public ElectionAdministrationController(ElectionAdministrationView view) : base(view) { Contract.Requires(view != null); _neededPermissions.Add(SystemAction.AllVotingPlaces); _neededPermissions.Add(SystemAction.LoadCitizen); _neededPermissions.Add(SystemAction.LoadVoterCard); _neededPermissions.Add(SystemAction.FindCitizen); _neededPermissions.Add(SystemAction.FindVotingVenue); _neededPermissions.Add(SystemAction.UpdateCitizens); _neededPermissions.Add(SystemAction.UpdateVoterCards); _neededPermissions.Add(SystemAction.PrintVoterCards); _view.ImportDataBtn.Click += (s, e) => ImportData(); _view.UpdateVoterCardsBtn.Click += (s, e) => UpdateVoterCards(); _view.PrintVoterCardsBtn.Click += (s, e) => PrintVoterCards(); _view.LostFocus += (s, e) => _view.StatusTextBox.Text = ""; }
public ElectionAdministrationController(ElectionAdministrationView view) : base(view) { Contract.Requires(view != null); _neededPermissions.Add(SystemAction.AllVotingPlaces); _neededPermissions.Add(SystemAction.LoadCitizen); _neededPermissions.Add(SystemAction.LoadVoterCard); _neededPermissions.Add(SystemAction.FindCitizen); _neededPermissions.Add(SystemAction.FindVotingVenue); _neededPermissions.Add(SystemAction.UpdateCitizens); _neededPermissions.Add(SystemAction.UpdateVoterCards); _neededPermissions.Add(SystemAction.PrintVoterCards); _view.ImportDataBtn.Click += (s, e) => ImportData(); _view.UpdateVoterCardsBtn.Click += (s, e) => UpdateVoterCards(); _view.PrintVoterCardsBtn.Click += (s, e) => PrintVoterCards(); _view.LostFocus += (s, e) => _view.StatusTextBox.Text = ""; }