private void OnOperationComplete(OperationEventArgs e) { if (OperationComplete != null) { OperationComplete(this, e); } }
private void downloadItem_OperationComplete(object sender, OperationEventArgs e) { IOperation operation = (IOperation)e.Item; if (chbAutoConvert.Enabled && chbAutoConvert.Checked && operation.Status == OperationStatus.Success) { string output = Path.Combine(Path.GetDirectoryName(operation.Output), Path.GetFileNameWithoutExtension(operation.Output)) + ".mp3"; this.Convert(operation.Output, output, false); } }
private void OnOperationComplete(OperationEventArgs e) { if (OperationComplete != null) { OperationComplete(this, e); } if (SettingsEx.AutoDelete == true) { File.Delete(Input); } }