private void tbClearLog_Click(object sender, EventArgs e) { NetLog.Clear(); if (_netInfo.IsMonitoring) { AddLog("Monitoring..."); } }
private void SetMonitoring(bool monitor) { if (monitor) { if (chkClearLog.Checked) { NetLog.Clear(); } _netInfo.StartMonitor(); } else { _netInfo.StopMonitor(); } UpdateUI(_netInfo.IsConnected()); }