public void RendererControlFormClose(RendererControlForm form,AVRenderer renderer)
 {
     if (rendererFormTable.ContainsKey(renderer)) rendererFormTable.Remove(renderer);
 }
 public void PopupRendererForm(AVRenderer renderer, CpMediaItem[] playmedias)
 {
     if (rendererFormTable.ContainsKey(renderer) == true)
     {
         RendererControlForm form = (RendererControlForm)rendererFormTable[renderer];
         if (playmedias != null) form.SetupConnection(playmedias);
         form.Activate();
     }
     else
     {
         RendererControlForm form = new RendererControlForm(this,renderer,null);
         rendererFormTable.Add(renderer,form);
         if (playmedias != null) form.SetupConnection(playmedias);
         form.Show();
     }
 }
 public void PopupRendererForm(AVRenderer renderer, ICpContainer container)
 {
     if (rendererFormTable.ContainsKey(renderer) == true)
     {
         RendererControlForm form = (RendererControlForm)rendererFormTable[renderer];
         if (container != null) form.SetupConnection(container);
         form.Activate();
     }
     else
     {
         RendererControlForm form = new RendererControlForm(this,renderer,null);
         rendererFormTable.Add(renderer,form);
         if (container != null) form.SetupConnection(container);
         form.Show();
     }
 }
        private void rendererControlsMenuItem_Click(object sender, System.EventArgs e)
        {
            if (InvokeRequired == true)
            {
                int tt = 5;
            }

            TreeNode node = deviceTree.SelectedNode;
            if (node == null || node.Tag == null) return;

            if (node.Tag.GetType() == typeof(AVRenderer))
            {
                if (rendererFormTable.ContainsKey(node.Tag) == true)
                {
                    RendererControlForm form = (RendererControlForm)rendererFormTable[node.Tag];
                    form.Activate();
                }
                else
                {
                    RendererControlForm form = new RendererControlForm(this,(AVRenderer)node.Tag,null);
                    rendererFormTable.Add(node.Tag,form);
                    form.Show();
                }
            }
        }