private bool CheckAllowedBlock (KeyData KeyDaten) { return true; }
public bool SetVotedToActiveKeyData (KeyData KeyDataToSet, String NewZweck, DateTime CalculatedVotingTime, String TestOption = "") { if (KeyDataToSet != ActuallSelectedKeyData) throw new Exception ("KeyDataToSet != ActuallSelectedKeyData"); String WahlText = WahlErlaubtText; if (WahlErlaubtBool == false) return false; SendPropertyChanged ("ActuallKommissionsText"); DataRow NewVotedZugriff; if (NewZweck == MBRWahl.MBRStatics.Gewaehlt) { NewVotedZugriff = MBRWahlDataWrapper.Instance.SetVotedToKeyData (KeyDataToSet.BasisRow, NewZweck, Vorname + " " + Name, CalculatedVotingTime, ++LastUsedVoterNumber, Notbetrieb, TestOption); SendPropertyChanged ("ActuallGewaehltZugriffe"); } if (NewZweck == MBRWahl.MBRStatics.WahlKarte) { NewVotedZugriff = MBRWahlDataWrapper.Instance.SetVotedToKeyData (KeyDataToSet.BasisRow, NewZweck, Vorname + " " + Name, CalculatedVotingTime, ++LastUsedInternetTokenNumber, Notbetrieb, TestOption); SendPropertyChanged("ActuallWahlKarteZugriffe"); } ResetToNoKeyDataSelected (); SendPropertyChanged ("BisherGewaehlt"); SendPropertyChanged ("WahlErlaubtText"); SendPropertyChanged ("DoVoteButtonColor"); return true; }
public DataCollection<KeyData> LoadPersonsAtThisTopNr (KeyData OneKeyOnThisTopNr) { PersonsAtThisTopNr.Clear (); foreach (DataRow Entry in MBRWahlDataWrapper.Instance.LoadPersonsAtThisTopNr (OneKeyOnThisTopNr.TopNr)) { KeyData Helper = new KeyData (Entry) {Parent = this}; if (Helper.TypeOfKeyData == KeyData.TypeOfKey.WahlBerechtigt) PersonsAtThisTopNr.Add (Helper); } return PersonsAtThisTopNr; }
public DataCollection<Zugriffe> LoadBisherGewaehltOnThisTopNr (KeyData OneKeyOnThisTopNr) { Synchronize (); BisherGewaehltAnEinerTopNr.Clear (); foreach (DataRow Entry in MBRWahlDataWrapper.Instance.GetZugriffeAtThisTopNr (OneKeyOnThisTopNr.TopNr)) { Zugriffe Helper = new Zugriffe (Entry) {Parent = this}; if ((Helper.Zweck == MBRStatics.Gewaehlt) || (Helper.Zweck == MBRStatics.WahlKarte)) BisherGewaehltAnEinerTopNr.Add (Helper); } return BisherGewaehltAnEinerTopNr; }
public KeyData GetKeyDaten (String KartenNummer) { DataRow [] KeyDatas = MBRWahlDataWrapper.Instance.GetKeyDataRows (KartenNummer); if (KeyDatas.Length == 1) { ActuallSelectedKeyData = new KeyData (KeyDatas [0]) {Parent = this}; Name = ActuallSelectedKeyData.Name; Vorname = ActuallSelectedKeyData.Vorname; } else ActuallSelectedKeyData = null; return ActuallSelectedKeyData; }