Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 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);
 }