public void ChangePlatesUsed() { var dialog = new ChangePlatesUsedDialogViewModel(); var result = _windowManager.ShowDialog(dialog); if (result == true) { Event.PInfo.PlatesUsed = dialog.AntalPlader; } }
public void DialogTester() { //Jeg er ikke 100 på hvorfor this expandoshit couldnt be done var dialog = new ChangePlatesUsedDialogViewModel(); //dynamic settings = new ExpandoObject(); //settings.WindowStartupLocation = WindowStartupLocation.CenterOwner; //settings.ResizeMode = ResizeMode.NoResize; //settings.Width = 200; //settings.Height = 120; var result = _windowManager.ShowDialog(dialog /*, null, settings*/); if (result == true) { } }