예제 #1
0
파일: Ribbon.cs 프로젝트: radtek/dms
 /// <summary>
 /// Handles the mouse down on the orb area
 /// </summary>
 internal void OrbMouseDown()
 {
     if (OrbPressed)
     {
         OrbDropDown.Close();
     }
     else
     {
         ShowOrbDropDown();
     }
     OnOrbClicked(EventArgs.Empty);
 }
예제 #2
0
        /// <summary>
        /// Raises the OrbClicked event
        /// </summary>
        /// <param name="e">event data</param>
        internal virtual void OnOrbClicked(EventArgs e)
        {
            if (OrbPressed)
            {
                OrbDropDown.Close();
            }
            else
            {
                ShowOrbDropDown();
            }

            if (OrbClicked != null)
            {
                OrbClicked(this, e);
            }
        }