Example #1
0
        /// <summary>
        /// Called when user hits OK in the property page
        /// </summary>
        protected override void OnPageApply()
        {
            SamplePlugin ctl = dataObject as SamplePlugin;

            if (ctl != null)
            {
                // Set the new parameter values back to the plugin
                ctl.put_itemStart(Int32.Parse(textBox1.Text));
            }
            base.OnPageApply();
        }
Example #2
0
        /// <summary>
        /// Called just before the property page is displayed
        /// </summary>
        protected override void OnPageActivate(System.IntPtr wndParent, Rectangle Rect, bool modal)
        {
            base.OnPageActivate(wndParent, Rect, modal);

            SamplePlugin ctl = dataObject as SamplePlugin;

            if (ctl != null)
            {
                // Get the parameter values from the plugin
                textBox1.Text = ctl.get_itemStart().ToString();
            }
        }