-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f556d1
commit b1a6bac
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) 2014-2018, Els_kom org. | ||
// https://github.com/Elskom/ | ||
// All rights reserved. | ||
// license: MIT, see LICENSE for more details. | ||
|
||
namespace callbacktest_plugin | ||
{ | ||
public class Callbacktest_plugin : Els_kom_Core.interfaces.ICallbackPlugin | ||
{ | ||
public string PluginName => "Callback Test Plugin"; | ||
public bool SupportsSettings => true; | ||
public System.Windows.Forms.Form SettingsWindow => new CallbacktestForm(); | ||
|
||
public void TestModsCallback() | ||
{ | ||
Els_kom_Core.Classes.SettingsFile.Settingsxml.ReopenFile(); | ||
int.TryParse(Els_kom_Core.Classes.SettingsFile.Settingsxml.Read("ShowTestMessages"), out int callbacksetting1); | ||
if (callbacksetting1 > 0) | ||
{ | ||
System.Windows.Forms.MessageBox.Show("Testing this callback interface.", "Info!", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information); | ||
} | ||
} | ||
} | ||
} |