private void bgwGuessRules_DoWork(object sender, DoWorkEventArgs e) { TileHandler.CreateRulesFromColorMatch((BackgroundWorker)sender); }