예제 #1
0
 private void OnNewFilesAppeared(object sender, NewFilesAppearedEventArgs eventArgs)
 {
     var files = eventArgs.Files;
     foreach (var file in files)
     {
         foreach (var pluginDescriptor in _pluginManager.Plugins)
         {
             try
             {
                 if (pluginDescriptor.Plugin != null)
                 {
                     var entries = pluginDescriptor.Plugin.Read(file);
                     if (entries.Any())
                     {
                         OnNewTradeDataEntriesAppeared(new NewTradeDataEntriesAppearedEventArgs(entries));
                     }
                 }
             }
             catch (PluginException e)
             {
                 OnPluginExceptionOccurred(new PluginExceptionOccurredEventArgs(e));
             }
         }
     }
 }
예제 #2
0
        protected virtual void OnNewFilesAppeared(NewFilesAppearedEventArgs e)
        {
            var handler = NewFilesAppeared;

            if (handler != null) handler(this, e);
        }