Esempio n. 1
0
 private void OnOperationComplete(OperationEventArgs e)
 {
     if (OperationComplete != null)
     {
         OperationComplete(this, e);
     }
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        private void OnOperationComplete(OperationEventArgs e)
        {
            if (OperationComplete != null)
            {
                OperationComplete(this, e);
            }

            if (SettingsEx.AutoDelete == true)
            {
                File.Delete(Input);
            }
        }