Пример #1
0
 public void SetRightPluginOrientation(PluginViewHolder pluginView)
 {
     if (RightContent != pluginView.View)
     {
         LeftContent = RightContent;
         RightContent = pluginView.View;
     }
 }
Пример #2
0
 public void SetPanelVisibility(PluginViewHolder pluginView)
 {
     if (pluginView.IsVisible)
     {
         if (LeftContent == pluginView.View)
         {
             LeftContent = null;
         }
         else
         {
             RightContent = null;
         }
     }
     else
     {
         if (LeftContent == null)
         {
             LeftContent = pluginView.View;
         }
         else
         {
             RightContent = pluginView.View;
         }
     }
 }
Пример #3
0
 public void SetPluginControl(IPlugin plugin, UIElement element, ImageSource toolboxImageSource)
 {
     if (m_PluginViewHolders.ContainsKey(plugin))
     {
         m_PluginViewHolders[plugin] = new PluginViewHolder(toolboxImageSource, element, plugin);
     }
     else
     {
         m_PluginViewHolders.Add(plugin, new PluginViewHolder(toolboxImageSource, element, plugin));
     }
     OnPropertyChanged("PluginViewHolders");
 }
Пример #4
0
 public void SetLeftPluginOrientation(PluginViewHolder pluginView)
 {
     if (LeftContent != pluginView.View)
     {
         RightContent = LeftContent;
         LeftContent = pluginView.View;
     }
 }