/// <summary> /// 添加主机 /// </summary> private void btnAddRemoteHost_Click(object sender, EventArgs e) { var hostForm = new RemoteHostForm { StyleManager = metroStyleManager }; if (hostForm.ShowDialog() == DialogResult.OK) { LoadHosts(); } }
private void tmiGropEdit_Click(object sender, EventArgs e) { if (_currSelectGroup == null) { return; } var host = (RemoteHost)_currSelectGroup.Tag; var hostForm = new RemoteHostForm { StyleManager = metroStyleManager, RemoteHost = host }; if (hostForm.ShowDialog() == DialogResult.OK) { LoadHosts(); } }