コード例 #1
0
        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);
            });
        }
コード例 #2
0
        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);
                }
            });
        }