public WriterManager(string[] flags) { // Create a new extension context ctx = AddinManager.CreateExtensionContext (); // Register the flags condition in the new context FlagsCondition condition = new FlagsCondition (flags); ctx.RegisterCondition ("HasFlag", condition); ctx.AddExtensionNodeHandler ("/WriterService/Writers", delegate { if (Changed != null) Changed (this, EventArgs.Empty); }); }
public WriterManager(string[] flags) { // Create a new extension context ctx = AddinManager.CreateExtensionContext(); // Register the flags condition in the new context FlagsCondition condition = new FlagsCondition(flags); ctx.RegisterCondition("HasFlag", condition); ctx.AddExtensionNodeHandler("/WriterService/Writers", delegate { if (Changed != null) { Changed(this, EventArgs.Empty); } }); }