private void TimerOnElapsed(object sender, ElapsedEventArgs elapsedEventArgs) { if (_module != null) { _module.Draw(ref _buffer); } DrawImage(); if (cbEnable.Checked) { SendImage(); } }