示例#1
0
 public MegajewelForm()
 {
     InitializeComponent();
     capturing = new Capturing(this);
     Overlaying = new Overlaying(this);
     Processing = new Processing(this);
     HotkeyManager = new HotkeyManager(this);
     KnowledgeBase = new KnowledgeBase(this);
     KnowledgeBase.Load();
     RecognitionStrategy.AllStrategies.Add(new NearestHistogramStrategy(this.KnowledgeBase.TrainingData));
     PopulateModes();
     RecognitionStrategy = new NearestHistogramStrategy(this.KnowledgeBase.TrainingData);
     AutonomyStrategy = new DoNothingStrategy();
     fontPower = new Font(FontFamily.GenericSansSerif, 28);
 }
示例#2
0
 public MegajewelForm()
 {
     InitializeComponent();
     capturing     = new Capturing(this);
     Overlaying    = new Overlaying(this);
     Processing    = new Processing(this);
     HotkeyManager = new HotkeyManager(this);
     KnowledgeBase = new KnowledgeBase(this);
     KnowledgeBase.Load();
     RecognitionStrategy.AllStrategies.Add(new NearestHistogramStrategy(this.KnowledgeBase.TrainingData));
     PopulateModes();
     RecognitionStrategy = new NearestHistogramStrategy(this.KnowledgeBase.TrainingData);
     AutonomyStrategy    = new DoNothingStrategy();
     fontPower           = new Font(FontFamily.GenericSansSerif, 28);
 }
示例#3
0
 private void cbRecognitionStrategy_SelectedIndexChanged(object sender, EventArgs e)
 {
     RecognitionStrategy = (RecognitionStrategy)cbRecognitionStrategy.SelectedItem;
 }
示例#4
0
 private void cbRecognitionStrategy_SelectedIndexChanged(object sender, EventArgs e)
 {
     RecognitionStrategy = (RecognitionStrategy)cbRecognitionStrategy.SelectedItem;
 }