public MainForm()
 {
     InitializeComponent();
     agInstance = AGHelper.getInstance();
     agInstance.OnGenerationCompleteCallback = OnGenerationComplete;
     agInstance.OnRunCompleteCallback= OnRunComplete;
     LoadGeneticOperatorsControls();
 }
 public static AGHelper getInstance()
 {
     if (_instance == null)
     {
         _instance = new AGHelper();
     }
     return _instance;
 }