Ejemplo n.º 1
0
        private object SendFileHandler(string[] message)
        {
            var selectedFile = new FileSelector();
            var unmessage    = string.Join(" ", message);
            var obj          = new object();

            if (unmessage.Length > Commands.SendFile.Length + 1)
            {
                unmessage = unmessage.Remove(0, Commands.SendFile.Length + 1);
                var nameAndMessage = GetNameAndMessage(unmessage);
                obj = selectedFile.SelectedFilePath(nameAndMessage[0], nameAndMessage[1]);
            }
            else
            {
                obj = selectedFile.SelectedFilePath(null, null);
            }
            return(obj);
        }
Ejemplo n.º 2
0
        private void SendFileCallback(CommandMessage commandFromServer)
        {
            var file = new FileSelector();

            file.SaveFile(commandFromServer);
        }