public DebugSession(DebugClient debugClient, Socket socket, bool compress = false) { Client = debugClient; communication = new TcpCommunication(socket, compress, Roles.Client, Client.IsLocal, Client.Password); communication.ExtendedSendStart += (sender, args) => StatusBar.InitProgress(); communication.Progress = progress => StatusBar.Progress(progress); communication.ExtendedSendEnd += (sender, args) => StatusBar.ClearProgress(); }