private static void ShowLicense(ShowLicensesMessage message) { LicensesWindow window = new LicensesWindow(); message.LicensesVM.Licenses.Add(ImageUtils.GetSvgNetLicense()); window.DataContext = message.LicensesVM; message.LicensesVM.RequestClose += () => { window.Close(); }; window.ShowDialog(); message.Process(); }
private static void ShowLicense(ShowLicensesMessage message) { LicensesWindow window = new LicensesWindow() { DataContext = message.LicensesVM, Owner = Application.Current.MainWindow }; message.LicensesVM.Licenses.Add(GetExtendedWpfToolkitLicense()); message.LicensesVM.RequestClose += () => { window.Close(); }; window.ShowDialog(); message.Process(); }