Пример #1
0
 private void tbClearLog_Click(object sender, EventArgs e)
 {
     NetLog.Clear();
     if (_netInfo.IsMonitoring)
     {
         AddLog("Monitoring...");
     }
 }
Пример #2
0
        private void SetMonitoring(bool monitor)
        {
            if (monitor)
            {
                if (chkClearLog.Checked)
                {
                    NetLog.Clear();
                }
                _netInfo.StartMonitor();
            }
            else
            {
                _netInfo.StopMonitor();
            }

            UpdateUI(_netInfo.IsConnected());
        }