Esempio n. 1
0
        private void GetShareInfo(object sender, ModelEventArgs e)
        {
            _sh = ShareFiles.Deserialize(_shareInfoPath);
            _sh.SharePathChanged += ((sender1, eventArg) => OnPropertyChanged("SharePath"));
            _sh.HashingPath      += ((sender1, arg) => AddHashingInfo(arg.Path));
            _sh.OnePathComplete  += ((sender1, arg) => AddHashCompleteInfo(arg.Path));

            Thread t = _sh.ListFile();

            t.Join();
            try
            {
                MaintenanceShareInfo();
                _client.UploadShareInfo(_sh.FileList);
                _client.RemoveOldFile(_sh.RemoveList);
                _sh.SetUploaded(_sh.FileList);
            }
            catch (Exception)
            {
                //throw;
            }

            SaveShareInfo();
            Show_ShareFile(null, ShareLoact);
        }