Beispiel #1
0
        private void taskfun()
        {
            Baidu1 baidu1 = new Baidu1("*****@*****.**", "ccc1459260", 10);

            List <BaiDuFile> list = baidu1.GetFileDir();

            string path      = "/data/32.mkv";
            string localPath = System.Environment.CurrentDirectory + "/data/data_" + DateTime.Now.ToString("MMddHHmmss") + ".mkv";

            iii = Environment.TickCount;
            FileOper fo = baidu1.DownFile(path, localPath, callback);

            path = "/data/00.jpg";
            string fileToUpload = System.Environment.CurrentDirectory + "/data/00.jpg";

            fo = baidu1.UpLoadFile(path, fileToUpload);
        }
        //public event PropertyChangedEventHandler PropertyChanged;

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            baidu1 = new Baidu1(UserName.Text, Password.Text, Convert.ToInt32(ThreadCount.Text));
            _his.Push(null);
            ProManager.Files = baidu1.List(null);
        }
Beispiel #3
0
 public BaiduDisk(string user, string pass)
 {
     _user  = user;
     baidu1 = new Baidu1(user, pass, 10);
 }