private void NewState(TwipOrToonation eTot) { foreach (var item in currentConfig) { if (eTot == TwipOrToonation.Twip) { if (TwipCrawler.IsRoulette == true) { if (TwipCrawler.IsComment == item.roulette) { ExcuteControl(item); } } else { if (item.amount == TwipCrawler.IsAmount) { ExcuteControl(item); } } } else { if (ToonationCrawler.IsRoulette == true) { if (ToonationCrawler.IsComment == item.roulette) { ExcuteControl(item); } } else { if (item.amount == ToonationCrawler.IsAmount) { ExcuteControl(item); } } } } if (eTot == TwipOrToonation.Twip) { TwipCrawler.IsRoulette = false; } else { ToonationCrawler.IsRoulette = false; } }
private void NewState(TwipOrToonation eTot) { this.Invoke(new Action(() => { string text = ""; text += eTot.ToString() + "\r\n"; if (eTot == TwipOrToonation.Twip) { text += $"NickName = {process.TwipCrawler.IsNickName}\r\n"; text += $"Amount = {process.TwipCrawler.IsAmount}\r\n"; text += $"Comment = {process.TwipCrawler.IsComment}\r\n"; } else { text += $"NickName = {process.ToonationCrawler.IsNickName}\r\n"; text += $"Amount = {process.ToonationCrawler.IsAmount}\r\n"; text += $"Comment = {process.ToonationCrawler.IsComment}\r\n"; } textBoxCurrentMessage.Text = text; })); }
public Crawler(TwipOrToonation eTot) { MyProperty = eTot; IsStarted = false; }