private void SavedFile(object sender, FileServerSavedFileEventArgs e) { if (downloader == null) { downloader = new Gui.FileDownloader(); Program.main.Invoke(new Action(downloader.Show)); } if (downloader.InvokeRequired) { Delegate temp = new Action <string, string, double>(downloader.UpdateFile); downloader.Invoke(temp, e.Filename, e.SavedPath, e.Recieved); } else { downloader.UpdateFile(e.Filename, e.SavedPath, e.Recieved); } }
private void SavedFile(object sender, FileServerSavedFileEventArgs e) { if (downloader == null) { downloader = new Gui.FileDownloader(); Program.main.Invoke(new Action(downloader.Show)); } if (downloader.InvokeRequired) { Delegate temp = new Action<string, string, double>(downloader.UpdateFile); downloader.Invoke(temp, e.Filename, e.SavedPath, e.Recieved); } else { downloader.UpdateFile(e.Filename, e.SavedPath, e.Recieved); } }