public bool Stop() { if (IsRunning) { IsRunning = false; _window.StopThread(); return(true); } return(false); }