public bool UploadMusic(string path)
 {
     YoYoStudio.SocketService.Music.TcpAsynchronousClient tcpClient = new YoYoStudio.SocketService.Music.TcpAsynchronousClient(path);
     bool result = tcpClient.UploadFile();
     if (result)
     {
         MusicDataBinding bind = new MusicDataBinding { Name = System.IO.Path.GetFileName(path), IsSelected = false };
         Musics.Add(bind);
     }
     return result;
 }
Exemple #2
0
        public bool UploadMusic(string path)
        {
            YoYoStudio.SocketService.Music.TcpAsynchronousClient tcpClient = new YoYoStudio.SocketService.Music.TcpAsynchronousClient(path);
            bool result = tcpClient.UploadFile();

            if (result)
            {
                MusicDataBinding bind = new MusicDataBinding {
                    Name = System.IO.Path.GetFileName(path), IsSelected = false
                };
                Musics.Add(bind);
            }
            return(result);
        }