public void on_mnuCancelTransfer_activate(object o, EventArgs args) { try { transfer.Cancel(); } catch (Exception ex) { Gui.ShowErrorDialog(ex.ToString()); } }
public void RemoveTransfer(IFileTransfer transfer) { if (!transfers.Contains(transfer)) { throw new ArgumentException("Unknown transfer"); } transfer.Cancel(); transfers.Remove(transfer); RaiseTransferRemoved(transfer); }
private void on_cancelButton_clicked(object o, EventArgs e) { transfer.Cancel(); }