private void ToogleActivate() { if (btnSerial.Enabled) { SaveConfig(); posPrinter.Ativar(); btnSerial.Enabled = false; btnAtivar.Text = @"Desativar"; } else { posPrinter.Desativar(); btnSerial.Enabled = true; btnAtivar.Text = @"Ativar"; } }