Exemple #1
0
 public override void InitializePlugin(IPoderosaWorld poderosa)
 {
     base.InitializePlugin(poderosa);
     _instance  = this;
     _idToHosts = new TypedHashtable <string, PlugInHost>();
     poderosa.PluginManager.FindExtensionPoint("org.poderosa.root").RegisterExtension(this);
     _extensionPoint = poderosa.PluginManager.CreateExtensionPoint(EXTENSIONPOINT_NAME, typeof(IPreferenceSupplier), this);
 }
Exemple #2
0
 public PlugInHost(PreferencePlugin parent, IPreferenceSupplier supplier, StructuredText root, int index)
 {
     _parent      = parent;
     _supplier    = supplier;
     _storageNode = root.FindChild(supplier.PreferenceID);
     if (_storageNode == null)
     {
         _storageNode = root.AddChild(supplier.PreferenceID);                    //空で作成しておく
     }
     _supplierID   = supplier.PreferenceID;
     _index        = index;
     _sharedResult = new PreferenceValidationResult();
 }