示例#1
0
 //This is the main function that gets called to load your plugin
 public void DarkPluginMain()
 {
     DarkLog.WriteLine("DarkPluginMain() has been hit in HelloToolkit Plugin Example.");
     DarkLog.WriteLine("Halo Online Folder: " + DarkSettings.HaloOnlineFolder);
     DarkLog.WriteLine("DebugMode: " + DebugMode.ToString());
     if (!runningForm)
     {
         //Change `HelloForm` to the name of your main form
         //Please check the comment for `runningForm` above.
         helloForm = new HelloForm();
         helloForm.Show();
     }
     else
     {
         //If you checked the comment for `runningForm` then this should
         //be smart enough to just show and hide your plugin instead of killing
         //it completely, or realoading it and breaking everything...
         DarkLog.WriteLine("Plugin already running!");
         helloForm.Show();
     }
 }
示例#2
0
 private void btnGo_Click(object sender, EventArgs e)
 {
     DarkLog.WriteLine(txtMessage.Text);
 }