Exemplo n.º 1
0
        /// <summary>
        /// Object constructor: creates page, shows it in Miranda options
        /// dialog.
        /// </summary>
        /// <param name="hInstance">
        /// Handle of DLL instance.
        /// </param>
        /// <param name="hLangpack">Miranda language pack header.</param>
        public OptionsPage(IntPtr hInstance, int hLangpack)
        {
            InitializeComponent();

            page = new OptionsPageInterface(
                hInstance,
                hLangpack,
                "Example",
                "WPF Page",
                "Hell.OptionPlugin",
                this);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates page and sets up loading of page into Miranda options
        /// dialog.
        /// </summary>
        /// <param name="hInstance">
        /// Handle of DLL instance.
        /// </param>
        /// <param name="hLangpack">Miranda language pack header.</param>
        /// <param name="manager">Manager plugin.</param>
        public OptionsPage(IntPtr hInstance, int hLangpack, HellManager manager)
        {
            InitializeComponent();

            this.manager = manager;

            pageInterface = new OptionsPageInterface(
                hInstance,
                hLangpack,
                "Plugins",
                "Managed Plugins",
                "Hell.HellManager",
                this);

            pageInterface.PageShowed += delegate { UpdateTable(); };
            pageInterface.ResetPageQuery += delegate { UpdateTable(); };
            pageInterface.ApplyButtonPressed += delegate { ApplyChanges(); };
        }