예제 #1
0
 public override IApplicationLicenseKey GetLicense(ILicenseProfile profile, ref bool additionHandled, Window owner)
 {
     var context = new DialogContext(DialogType.Process, new ProcessLicenseKey(), profile);
     if (context.Display(owner))
     {
         return context.Key;
     }
     else
     {
         return null;
     }
 }
예제 #2
0
파일: Origin.cs 프로젝트: GAMP/Plugins
 public override IApplicationLicenseKey EditLicense(IApplicationLicenseKey key, ILicenseProfile profile, ref bool additionHandled, Window owner)
 {
     var context = new DialogContext(DialogType.UserNamePassword, key, profile);
     if (context.Display(owner))
     {
         return context.Key;
     }
     else
     {
         return null;
     }
 }
예제 #3
0
 public override IApplicationLicenseKey GetLicense(ILicenseProfile profile, ref bool additionHandled, Window owner)
 {
     var context = new DialogContext(DialogType.Steam, new SteamLicenseKey(), profile);
     return context.Display(owner) ? context.Key : null;
 }
예제 #4
0
파일: Diablo3.cs 프로젝트: GAMP/Plugins
 public override IApplicationLicenseKey GetLicense(ILicenseProfile profile, ref bool additionHandled, System.Windows.Window owner)
 {
     var context = new DialogContext(DialogType.UserNamePassword, this.GetKeyInstance(), profile);
     if (context.Display(owner))
     {
         return context.Key;
     }
     else
     {
         return null;
     }
 }