protected State lastState; //used in error handling. public BotModule(Bot m, IWebDriver b) { manager = m; browser = b; init(); }
public Consol() { ts = new ThreadStart(() => bot = new Bot(this)); threadBot = new Thread(ts); threadBot.SetApartmentState(ApartmentState.STA); threadBot.Start(); InitializeComponent(); richTextBox1.WordWrap = false; helpdoc = XDocument.Load(HELPPATH); write("Console initialized."); }