private void btnUpdateLicense_Click(object sender, RoutedEventArgs e) { LicenseWindow dialog = new LicenseWindow(); dialog.Owner = this; dialog.ShowDialog(); }
private bool InitializeLicense() { Licenseinfo = new LicenseInfo(); Licenseinfo.Initialize(); if (Licenseinfo.IsLicensed()) { return(true); } var dialog = new Layout.LicenseWindow(); return(dialog.ShowDialog() == true); }