예제 #1
0
 private void btnPing_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(txtUrl.Text))
     {
         FrmPing frm = new FrmPing();
         frm.ShowAndPing(txtUrl.Text);
     }
 }
예제 #2
0
 private void 查看共享ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (dgMembers.SelectedRows.Count > 0)
     {
         DataGridViewRow row     = dgMembers.SelectedRows[0];
         LanMachine      machine = row.Tag as LanMachine;
         if (machine == null)
         {
             return;
         }
         string ip = machine.IP.ToString();
         if (!string.IsNullOrEmpty(ip))
         {
             FrmPing frm = new FrmPing();
             OpenShare(ip);
         }
     }
 }