Example #1
0
        public WMPVisualizationInfo(string sClsid)
        {
            WMPPlugin = new WMPVisualizationPlugin(sClsid);

            if (WMPPlugin == null)
            {
                return;
            }

            _Title        = GetTitle();
            _PresetCount  = GetPresetCount();
            _Capabilities = GetCapabilities();

            for (int i = 0; i < _PresetCount; i++)
            {
                string presetTitle = GetPresetTitle(i);

                if (presetTitle.Length == 0)
                {
                    continue;
                }

                _Presets.Add(presetTitle);
            }
        }
Example #2
0
 public void Dispose()
 {
     if (WMPPlugin != null)
     {
         WMPPlugin.SafeDispose();
         WMPPlugin = null;
     }
 }
 public void Dispose()
 {
   if (WMPPlugin != null)
   {
     WMPPlugin.SafeDispose();
     WMPPlugin = null;
   }
 }
    public WMPVisualizationInfo(string sClsid)
    {
      WMPPlugin = new WMPVisualizationPlugin(sClsid);

      if (WMPPlugin == null)
      {
        return;
      }

      _Title = GetTitle();
      _PresetCount = GetPresetCount();
      _Capabilities = GetCapabilities();

      for (int i = 0; i < _PresetCount; i++)
      {
        string presetTitle = GetPresetTitle(i);

        if (presetTitle.Length == 0)
        {
          continue;
        }

        _Presets.Add(presetTitle);
      }
    }