コード例 #1
0
 public BookwormForm()
 {
     InitializeComponent();
     LockMode.Active           = true;
     BookwormForm.FormInstance = this;
     Hotkeys      = new Hotkeys(Bot, this);
     StatusOutput = new StatusOutput(this);
     Hotkeys.LoadHotkeys();
     bLoadAndParseDictionary_Click(this, EventArgs.Empty);
     this.cbDatabase.SelectedIndex = 1;
     Bot.Database.SwitchDatabase(this.cbDatabase.SelectedItem.ToString());
     Bot.Vocabulary.LoadGrimmDictionaryAsync();
     GarbageCollector.StartCollectingInBackground();
     foreach (Screenpart screenpart in (Screenpart[])Enum.GetValues(typeof(Screenpart)))
     {
         this.lbScreenparts.Items.Add(screenpart);
     }
     Task.Run((Action)CaptureAndBot);
     // LoadTilePositions();
 }