/// <summary>
        /// Raises the <see cref="E:System.Windows.Forms.Control.Click" /> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs" /> that contains the event data.</param>
        protected override void OnClick(System.EventArgs e)
        {
            _checked = !_checked;
            if (checkedChanged != null)
            {
                checkedChanged(this, EventArgs.Empty);
            }

            //foreach (Control C in Parent.Controls)
            //{
            //    if (C.GetType().ToString() == String.Format(Application.ProductName.ToString(), ".ZeroitRadioThematic"))
            //    {
            //        ZeroitRadioThematic CC = null;
            //        CC = (ZeroitRadioThematic)C;
            //        CC.Checked = false;
            //    }
            //}
            //Checked = true;

            foreach (Control C in Parent.Controls)
            {
                if (C.GetType().ToString() == "Zeroit.Framework.RadioThematic.Controls.ZeroitRadioThematic")
                {
                    ZeroitRadioThematic RDT = null;
                    RDT         = (ZeroitRadioThematic)C;
                    RDT.Checked = false;
                }
            }


            base.OnClick(e);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ZeroitRadioThematicSmartTagActionList"/> class.
        /// </summary>
        /// <param name="component">A component related to the <see cref="T:System.ComponentModel.Design.DesignerActionList" />.</param>
        public ZeroitRadioThematicSmartTagActionList(IComponent component) : base(component)
        {
            this.colUserControl = component as ZeroitRadioThematic;

            // Cache a reference to DesignerActionUIService, so the
            // DesigneractionList can be refreshed.
            this.designerActionUISvc = GetService(typeof(DesignerActionUIService)) as DesignerActionUIService;
        }
Пример #3
0
 /// <summary>
 /// vs the on click.
 /// </summary>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 private void VOnClick(System.EventArgs e)
 {
     foreach (Control C in Parent.Controls)
     {
         if (C.GetType().ToString() == String.Format(Application.ProductName, " ", "_") + ".VRadiobutton")
         {
             ZeroitRadioThematic CC = null;
             CC         = (ZeroitRadioThematic)C;
             CC.Checked = false;
         }
     }
     Checked = true;
 }