Skip to content

Commit d8ca4ee

Browse files
committed
Added IPayPalPlugin
1 parent c882812 commit d8ca4ee

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

CAPIT/CAPITPlugin.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,31 @@ namespace Rappen.XTB.CAT
2222
ExportMetadata("BackgroundColor", "#FFFFC0"),
2323
ExportMetadata("PrimaryFontColor", "#0000C0"),
2424
ExportMetadata("SecondaryFontColor", "#0000FF")]
25-
public class CAPITPlugin : PluginBase
25+
public class CAPITPlugin : PluginBase, IPayPalPlugin
2626
{
27+
public string DonationDescription => $"Donate to the creator of Custom Action Tester for XrmToolBox";
28+
29+
public string EmailAccount => "[email protected]";
30+
2731
public override IXrmToolBoxPluginControl GetControl()
2832
{
2933
return new CustomActionTester(new CAPITTool());
3034
}
3135

3236
/// <summary>
33-
/// Constructor
37+
/// Constructor
3438
/// </summary>
3539
public CAPITPlugin()
3640
{
37-
// If you have external assemblies that you need to load, uncomment the following to
41+
// If you have external assemblies that you need to load, uncomment the following to
3842
// hook into the event that will fire when an Assembly fails to resolve
3943
// AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolveEventHandler);
4044
}
4145

4246
/// <summary>
4347
/// Event fired by CLR when an assembly reference fails to load
4448
/// Assumes that related assemblies will be loaded from a subfolder named the same as the Plugin
45-
/// For example, a folder named Sample.XrmToolBox.MyPlugin
49+
/// For example, a folder named Sample.XrmToolBox.MyPlugin
4650
/// </summary>
4751
/// <param name="sender"></param>
4852
/// <param name="args"></param>

CAT/CATPlugin.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,31 @@ namespace Rappen.XTB.CAT
2121
ExportMetadata("BackgroundColor", "#FFFFC0"),
2222
ExportMetadata("PrimaryFontColor", "#0000C0"),
2323
ExportMetadata("SecondaryFontColor", "#0000FF")]
24-
public class CATPlugin : PluginBase
24+
public class CATPlugin : PluginBase, IPayPalPlugin
2525
{
26+
public string DonationDescription => $"Donate to the creator of Custom API Tester for XrmToolBox";
27+
28+
public string EmailAccount => "[email protected]";
29+
2630
public override IXrmToolBoxPluginControl GetControl()
2731
{
2832
return new CustomActionTester(new CATTool());
2933
}
3034

3135
/// <summary>
32-
/// Constructor
36+
/// Constructor
3337
/// </summary>
3438
public CATPlugin()
3539
{
36-
// If you have external assemblies that you need to load, uncomment the following to
40+
// If you have external assemblies that you need to load, uncomment the following to
3741
// hook into the event that will fire when an Assembly fails to resolve
3842
// AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AssemblyResolveEventHandler);
3943
}
4044

4145
/// <summary>
4246
/// Event fired by CLR when an assembly reference fails to load
4347
/// Assumes that related assemblies will be loaded from a subfolder named the same as the Plugin
44-
/// For example, a folder named Sample.XrmToolBox.MyPlugin
48+
/// For example, a folder named Sample.XrmToolBox.MyPlugin
4549
/// </summary>
4650
/// <param name="sender"></param>
4751
/// <param name="args"></param>

CustomActionTester/CATcode.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace Rappen.XTB.CAT
2020
{
2121
using ParamType = Rappen.XTB.CAT.Customapirequestparameter.Type_OptionSet;
2222

23-
public partial class CustomActionTester : IGitHubPlugin, IAboutPlugin, IShortcutReceiver, IMessageBusHost
23+
public partial class CustomActionTester : IGitHubPlugin, IAboutPlugin, IShortcutReceiver, IMessageBusHost, IPayPalPlugin
2424
{
2525
#region Public Events
2626

@@ -47,6 +47,10 @@ public partial class CustomActionTester : IGitHubPlugin, IAboutPlugin, IShortcut
4747

4848
public string SelectedCustomUnique => cmbCustomActions.SelectedRecord?.AttributeToString(catTool.Columns.APIMessageName, string.Empty);
4949

50+
public string DonationDescription => $"Donate to the creator of {catTool.Name} for XrmToolBox";
51+
52+
public string EmailAccount => "[email protected]";
53+
5054
#endregion Public Properties
5155

5256
#region Public Methods

0 commit comments

Comments
 (0)