Exemple #1
0
	public bool CheckForAutomaticActiveAdministration ()
		{
		ActiveAdministration = GetActiveAdministration ();
		if (ActiveAdministration != null)
			return true;
		return false;
		}
Exemple #2
0
	private bool ProcessActiveAdministrationChanged(Verwaltung ActiveAdministrationToCheck)
		{

		if (ActiveAdministrationToCheck == null)
			{
			MBRWahl.MBRWahlDataWrapper.Instance.KommissionsID = String.Empty;
			MBRWahl.MBRWahlDataWrapper.Instance.KommissionsIDGuid = System.Guid.Empty;
			VotesAllowed = false;
			CloseDown ();
			return true;
			}
		else
			{
			MBRWahl.MBRWahlDataWrapper.Instance.KommissionsID = _activeAdministration.KommissionsID;
			MBRWahl.MBRWahlDataWrapper.Instance.KommissionsIDGuid = _activeAdministration.ID;
			VotesAllowed = true;
			StartUp ();
			SendPropertyChanged("VotesForBlockAAllowed");
			SendPropertyChanged("VotesForBlockBAllowed");
			SendPropertyChanged("VotesForBlockCAllowed");
			SendPropertyChanged("ActuallKommissionsText");
			//ActiveAdministrationToCheck.SendPropertyChanged("InternetTokenAusgabeBool");
			//ActiveAdministrationToCheck.SendPropertyChanged("BerechtigungsPruefungBool");
			return false;
			}
		}