private void OnIsValidPropertyChanged()
        {
            if (!this.IsValid)
            {
                var oldConfiguration = this.configurationViewModel;

                this.configurationViewModel = new QRCodeConfigurationViewModel();
                this.GenerateLinkQRCode();

                this.configurationViewModel = oldConfiguration;
            }
        }
Exemple #2
0
        private void OnIsValidPropertyChanged()
        {
            if (!this.IsValid)
            {
                this.MessageText      = this.ErrorMessage;
                this.ShowErrorMessage = true;
                var oldConfiguration = this.configurationViewModel;

                this.configurationViewModel = new QRCodeConfigurationViewModel();
                this.GenerateLinkQRCode();

                this.configurationViewModel = oldConfiguration;
            }
        }
Exemple #3
0
 public QRCodeViewModel()
 {
     this.configurationViewModel = new QRCodeConfigurationViewModel();
     this.ECL         = ErrorCorrectionLevel.H;
     this.MessageText = ConfigurationMessage;
 }
 public QRCodeViewModel()
 {
     this.configurationViewModel = new QRCodeConfigurationViewModel();
     this.ECL = ErrorCorrectionLevel.H;
 }