Example #1
0
 public static ITresorState GetInstance()
 {
     if (_tresorState == null)
     {
         _tresorState = new StateClose();
     }
     return(_tresorState);
 }
Example #2
0
 public Tresor(ITresorState newState, String ownDefaultSecret)
 {
     if (validSecret(ownDefaultSecret))
     {
         this._secret = ownDefaultSecret;
     }
     else
     {
         MessageBox.Show("Ihr definiertes Start-Passwort ust ungültig. Es wird der Standard verwendet!");
     }
     this.SetStatus(newState);
 }
Example #3
0
 public void SetStatus(ITresorState newTresorStatus)
 {
     _tresorStatus = newTresorStatus;
     Notify();
 }
Example #4
0
 public Tresor(ITresorState newState)
 {
     this.SetStatus(newState);
 }