示例#1
0
 private static void AddPlugin(Group p)
 {
     if (p.Plugins == null)
     {
         p.Plugins = PluginList.Create();
     }
     if (p.Plugins.Plugin == null)
     {
         p.Plugins.Plugin = new ObservableCollection <Plugin>();
     }
     p.Plugins.Plugin.Add(Plugin.Create());
 }