public override void ClientSide(System.Windows.Forms.FormCollection OpenWindows, Common.Delegates.CreateClientWindow CreateWindow, Connection ThisConnection) { //IF WE GET BACK A SUCCESS WE STORE THIS CONNECTION AS AUTHENTICATED if (this.Success) { ThisConnection.UserID = this.UserID; ThisConnection.DisplayName = this.DisplayName; ThisConnection.Authenticated = true; new Message_StatusUpdate() { Online = true, UserID = this.UserID, Status = "Active" }.Send(ThisConnection); } else { MessageBox.Show("Authentication Failed!"); ThisConnection.TcpConnection.Close(); } }
public override void ClientSide(System.Windows.Forms.FormCollection OpenWindows, Common.Delegates.CreateClientWindow CreateWindow, Common.Connections.Connection ThisConnection) { //THIS DOESNT NEED TO DO ANYTHING CLIENT SIDE BECAUSE IT EXECUTES A SERIES OF PRIVATE MESSAGES FOR EACH MESSAGE FOUND IN THE DATABASE }
public override void ClientSide(System.Windows.Forms.FormCollection OpenWindows, Common.Delegates.CreateClientWindow CreateWindow, Connection ThisConnection) { Form NewWindow = null; CreateWindow("", this.ConversationID, ref NewWindow, WindowType.Conversation); }