public void restart() { stop(); thread = new BotThread(); loadSelf(); start(); }
public void stop() { try { if (thread != null) { thread.Dispose(); thread = null; } } catch (Exception ex) { } }