Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }