From b1a6bac266374a1d50a62b875c5f9b67354c5bc2 Mon Sep 17 00:00:00 2001 From: CatGirlsAreLife <20854328+CatGirlsAreLife@users.noreply.github.com> Date: Thu, 26 Jul 2018 16:32:36 -0400 Subject: [PATCH] Create Callbacktest_plugin.cs --- Callbacktest_plugin.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Callbacktest_plugin.cs diff --git a/Callbacktest_plugin.cs b/Callbacktest_plugin.cs new file mode 100644 index 0000000..a7523d7 --- /dev/null +++ b/Callbacktest_plugin.cs @@ -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); + } + } + } +}