private void OnLoginSucceeded(object sender, MessageEventArgs_201 message) { ConnectionManager.Messages.LoginSucceededEvent -= OnLoginSucceeded; OwnUserId = message.UserId; ConnectionManager.Commands.Who(1); //1 = Public Chat ConnectionManager.Commands.Ping(this); //Starts the heart beat pings to the server HeartBeat = new HeartBeatTimer(ConnectionManager); HeartBeat.StartTimer(); PublicChat = new Chat(ConnectionManager.Messages, 1); // 1 = chat id for public chat News = new News.News(ConnectionManager.Messages); FileRoot = new FileTree(); FileRoot.Reload(); Transfers = new Transfers.Transfers(); if (Online != null) { Online(); } }
public FolderTransfer(ICommands commands, Transfers transfers, IFolder node, string destination) { Transfers = transfers; Source = (INode)node; Destination = destination; Status = Status.Idle; SubTransfers = new List<ITransfer>(); Source.Updated += OnNodeUpdated; listingDone = false; commands.List(Source.FullPath); }
public FolderTransfer(ICommands commands, Transfers transfers, IFolder node, string destination) { Transfers = transfers; Source = (INode)node; Destination = destination; Status = Status.Idle; SubTransfers = new List <ITransfer>(); Source.Updated += OnNodeUpdated; listingDone = false; commands.List(Source.FullPath); }
private void OnLoginSucceeded(object sender, MessageEventArgs_201 message) { ConnectionManager.Messages.LoginSucceededEvent -= OnLoginSucceeded; OwnUserId = message.UserId; ConnectionManager.Commands.Who(1); //1 = Public Chat ConnectionManager.Commands.Ping(this); //Starts the heart beat pings to the server HeartBeat = new HeartBeatTimer(ConnectionManager); HeartBeat.StartTimer(); PublicChat = new Chat(ConnectionManager.Messages, 1); // 1 = chat id for public chat News = new News.News(ConnectionManager.Messages); FileRoot = new FileTree(); FileRoot.Reload(); Transfers = new Transfers.Transfers(); if (Online != null) { Online(); } }