private void myWindow_Loaded(object sender, RoutedEventArgs e) { string fullRegistryPath = @"HKEY_CURRENT_USER\Software\Quasimodo Programs\BT"; string registryValueName = "Key"; string key = QP.GetRegister(fullRegistryPath, registryValueName); if (key != null && QP.IsLicensed(key, "BlueTimer.LicenseKeys.txt")) { QP._isLicensed = true; UnlockFull(); } else { QP._isLicensed = false; this.Opacity = mDarkOpacity; Window_Buy win = new Window_Buy() { Owner = this, ShowInTaskbar = false }; win.ShowDialog(); this.Opacity = 1; ShowInTaskbar = true; } }
private void btn_Register_Click(object sender, RoutedEventArgs e) { Opacity = mDarkOpacity; Window_Buy win = new Window_Buy() { Owner = this, ShowInTaskbar = false }; win.ShowDialog(); Opacity = 1; ShowInTaskbar = true; }