Skip to content

Commit

Permalink
Create Callbacktest_plugin.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
CatGirlsAreLife authored Jul 26, 2018
1 parent 7f556d1 commit b1a6bac
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Callbacktest_plugin.cs
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);
}
}
}
}

0 comments on commit b1a6bac

Please sign in to comment.