Exemple #1
0
 public void SaveGlobalConfig()
 {
     foreach (AvailablePlugIn <IPlugIn> p in this.AvailablePlugInCollection)
     {
         IPlugInUIWithGlobal i = p.Instance as IPlugInUIWithGlobal;
         if (i != null && i.UseGlobal == true)
         {
             p.Instance.SaveConfig(MotionConfiguration.Instance.PlugInGlobalSettings);
         }
     }
 }
Exemple #2
0
 public void ValidateAll(List <string> msgs, bool global)
 {
     foreach (AvailablePlugIn <IPlugIn> p in this.AvailablePlugInCollection)
     {
         if (global)
         {
             IPlugInUIWithGlobal i = p.Instance as IPlugInUIWithGlobal;
             if (i != null)
             {
                 p.Instance.ValidCheck(msgs);
             }
         }
         else
         {
             p.Instance.ValidCheck(msgs);
         }
     }
 }
Exemple #3
0
 public void PropertyGridItemsInitialization(ZForge.Controls.PropertyGridEx.CustomPropertyCollection items, bool global)
 {
     foreach (AvailablePlugIn <IPlugIn> pi in this.AvailablePlugInCollection)
     {
         IPlugInUI u = pi.Instance as IPlugInUI;
         if (u == null)
         {
             continue;
         }
         if (global == false)
         {
             List <ZForge.Controls.PropertyGridEx.CustomProperty> plist = u.UIPropertyItems;
             if (plist == null)
             {
                 continue;
             }
             foreach (ZForge.Controls.PropertyGridEx.CustomProperty t in plist)
             {
                 if (pi.Instance is IPlugInVideoSource)
                 {
                     t.Visible = false;
                 }
                 items.Add(t);
             }
         }
         else
         {
             IPlugInUIWithGlobal ig = pi.Instance as IPlugInUIWithGlobal;
             if (ig != null)
             {
                 ig.GlobalOperation = true;
                 List <ZForge.Controls.PropertyGridEx.CustomProperty> plist = u.UIPropertyItems;
                 if (plist == null)
                 {
                     continue;
                 }
                 foreach (CustomProperty t in plist)
                 {
                     items.Add(t);
                 }
             }
         }
     }
 }