public override int GetHashCode() { int hash = 1; if (connUser_ != null) { hash ^= ConnUser.GetHashCode(); } if (Action.Length != 0) { hash ^= Action.GetHashCode(); } hash ^= Params.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
void DisconnectUser(object sender, EventArgs e) { if (lstOnlineUsers.SelectedItems.Count == 0) { return; } string SelectedConnection_SessionID = lstOnlineUsers.SelectedItems[0].SubItems[0].Text; foreach (FTPClient ConnUser in FTPServer.FTPClients) { if (ConnUser.SessionID == SelectedConnection_SessionID) { ConnUser.Disconnect(); break; } } RefreshUsersList(null, null); }
public void MergeFrom(NetRequest other) { if (other == null) { return; } if (other.connUser_ != null) { if (connUser_ == null) { connUser_ = new global::SerAndDeSer.UseGoogleProtobuf.ConnectUser(); } ConnUser.MergeFrom(other.ConnUser); } if (other.Action.Length != 0) { Action = other.Action; } params_.Add(other.params_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }