Esempio n. 1
0
 private void downloadFinised(object source, double downloadFinished)
 {
     server.logout(userData, filesData);
     this.filesData = JsonConvert.SerializeObject(this.getFiles(config.path));
     server.login(userData, filesData);
     Dispatcher.BeginInvoke(new ThreadStart(() => progress(downloadFinished)));
 }
Esempio n. 2
0
 private void DataWindow_Closing(object sender, CancelEventArgs e)
 {
     this.filesData = JsonConvert.SerializeObject(this.getFiles(config.path));
     server.logout(userData, filesData);
     this.OnClosed(e);
 }