コード例 #1
0
 private void GenerateAllowedDenied()
 {
     if (!this.IsCachedDataReady)
     {
         EditPrivacyViewModel.PrepareCache();
     }
     else
     {
         this.LoadAllowedDenied();
     }
 }
コード例 #2
0
 public EditPrivacyViewModel(EditPrivacyViewModel vm, Action <PrivacyInfo> saveCallback)
 {
     this.PrivacyQuestion   = vm.PrivacyQuestion;
     this._inputPrivacyInfo = new PrivacyInfo(vm._inputPrivacyInfo.ToString());
     this._key             = vm.Key;
     this._supportedValues = vm._supportedValues;
     this._privacyType     = this._inputPrivacyInfo.PrivacyType;
     this._saveCallback    = saveCallback;
     this.GenerateAllowedDenied();
     EventAggregator.Current.Subscribe((object)this);
 }