예제 #1
0
        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();
            }
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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();
            }
        }