Benninger
Member
- Joined
- Apr 22, 2010
- Messages
- 457
- Reaction score
- 0
Hm, I am learning C# just for AB
Can you provide a link to that sample plugins in this forum, please? I only find complex plugins (e.g. TradeRunner) which I am not able to analyze yet 
Or can you please answer this:
This code does not work and I wonder how I can do that: Mini Plugin that opens a Windows Form. In that Form is e.g. a DropDownList and depending on the selected value AB shall do something.
Oh, Reference to System.Windows.Forms has been added and a form named "Form1.cs", too.
Thank you,
Benninger


Or can you please answer this:
This code does not work and I wonder how I can do that: Mini Plugin that opens a Windows Form. In that Form is e.g. a DropDownList and depending on the selected value AB shall do something.
Oh, Reference to System.Windows.Forms has been added and a form named "Form1.cs", too.
Code:
using System;
using System.Windows.Forms;
using System.Threading;
using System.Collections.Generic;
using ArcheBuddy.Bot.Classes;
namespace DefaultNamespace
{
public class DefaultClass : Core
{
private Form1 F;
public void PluginRun()
{
F.ShowDialog();
// Do Some Stuff depending on selectec DropDownList in the Form
switch (F.Listbox1.SelectedItem.Tostring())
{
case "Entry 1":
// do some AB Stuff
break;
case "Entry 2":
// do some AB Stuff
break;
//...
}
}
}
}
Thank you,
Benninger