private void GUIcomment_FormClosing(object sender, FormClosingEventArgs e) { gui.Invoke((MethodInvoker) delegate { gui.Enabled = true; }); }
private void copyHost_click(object sender, EventArgs e) { ListViewItem item = list.SelectedItems[0]; String host = item.SubItems[0].Text; try { gui.Invoke((MethodInvoker) delegate { Clipboard.SetText(host); }); } catch { gui.Invoke((MethodInvoker) delegate { gui.Log(Resources.Strings.Error_occ, LogType.Debug, false); }); } }