Example #1
0
        private void btnUpdateLicense_Click(object sender, RoutedEventArgs e)
        {
            LicenseWindow dialog = new LicenseWindow();

            dialog.Owner = this;
            dialog.ShowDialog();
        }
Example #2
0
        private bool InitializeLicense()
        {
            Licenseinfo = new LicenseInfo();
            Licenseinfo.Initialize();

            if (Licenseinfo.IsLicensed())
            {
                return(true);
            }

            var dialog = new Layout.LicenseWindow();

            return(dialog.ShowDialog() == true);
        }