Пример #1
0
        public void Voted(BlockchainDetails blockchain, string words)
        {
            CopyStatus  = "";
            MagicWords  = words;
            _blockchain = blockchain;

            Encrypted = blockchain.ShouldEncryptResults;
            ProceedCommand.RaiseCanExecuteChanged();
        }
Пример #2
0
 public ProceedViewModel(WordPage p)
 {
     page = p;
     if (p.BindingContext != null && p.BindingContext is IWordViewModel)
     {
         model = p.BindingContext as IWordViewModel;
         model.PropertyChanged += (s, e) => this.OnPropertyChanged(nameof(Message));
     }
     if (model != null)
     {
         model.PropertyChanged += (s, e) =>
         {
             ProceedCommand?.OnCanExecuteChanged();
             OnPropertyChanged(nameof(Message));
         };
     }
 }
Пример #3
0
        public PersonWindowViewModel(PersonWindow pw, MainWindowViewModel m, Person p)
        {
            ProceedCommand = new ProceedCommand(this);
            _mwvm          = m;
            _pw            = pw;

            if (p != null)
            {
                _person        = p;
                FirstNameValue = p.Name;
                LastNameValue  = p.Surname;
                DateValue      = p.BirthDate;
                EMailValue     = p.EMail;
            }
            else
            {
                DateValue = new DateTime(2000, 1, 1);
            }
        }
Пример #4
0
 public MainWindowViewModel()
 {
     ProceedCommand = new ProceedCommand(this);
     DateValue      = new DateTime(2000, 1, 1);
     LoaderManager.Instance.Initialize(this);
 }