Beispiel #1
0
        public async void ExecuteGeneratePassword(object o)
        {
            var generatorDialog = new GeneratorDialogView();
            var dialogViewModel = new GeneratorDialogViewModel(generatorDialog, this);

            generatorDialog.DataContext = dialogViewModel; // Sets datacontext to the dialog view model

            await dialogCoordinator.ShowMetroDialogAsync(this, generatorDialog);
        }
        public async void ExecuteGeneratePassword(object o)
        {
            var dialogViewModel = new GeneratorDialogViewModel(this);

            GeneratorDialog = new GeneratorDialogView()
            {
                DataContext = dialogViewModel
            };

            await dialogCoordinator.ShowMetroDialogAsync(this, GeneratorDialog);
        }