Example #1
0
 public void OnButtonItemClicked(ref RibbonItemEventArgs e)
 {
     if (ButtonItemClicked != null)
     {
         ButtonItemClicked(e.Item, e);
     }
 }
 public virtual void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
    if (DropDownItemClicked != null)
    {
       DropDownItemClicked(this, e);
    }
 }
Example #3
0
 public void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
     if (DropDownItemClicked != null)
     {
         DropDownItemClicked(e.Item, e);
     }
 }
Example #4
0
 public virtual void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
     if (DropDownItemClicked != null)
     {
         DropDownItemClicked(this, e);
     }
 }
Example #5
0
        void DropDownItem_Click(object sender, EventArgs e)
        {
            _selectedItem = (sender as RibbonItem);

            RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem);

            OnDropDownItemClicked(ref ev);
        }
Example #6
0
        void DropDownItem_Click(object sender, EventArgs e)
        {
            // Steve
            _selectedItem = (sender as RibbonItem);

            TextBoxText = (sender as RibbonItem).Text;
            //Kevin Carbis
            RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem);

            OnDropDownItemClicked(ref ev);
        }
Example #7
0
        internal void item_Click(object sender, EventArgs e)
        {
            // Steve
            _selectedItem = (sender as RibbonItem);

            //Kevin Carbis
            RibbonItemEventArgs ev = new RibbonItemEventArgs(_selectedItem);

            if (DropDownItems.Contains(_selectedItem))
            {
                OnDropDownItemClicked(ref ev);
            }
            else
            {
                OnButtonItemClicked(ref ev);
            }
        }
      internal void item_Click(object sender, EventArgs e)
      {
         // Steve
         _selectedItem = (sender as RibbonItem);

         //Kevin Carbis
         RibbonItemEventArgs ev = new RibbonItemEventArgs(_selectedItem);
         if (DropDownItems.Contains(_selectedItem))
            OnDropDownItemClicked(ref ev);
         else
            OnButtonItemClicked(ref ev);
      }
 public void OnButtonItemClicked(ref RibbonItemEventArgs e)
 {
    if (ButtonItemClicked != null)
    {
       ButtonItemClicked(e.Item, e);
    }
 }
 public void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
    if (DropDownItemClicked != null)
    {
       DropDownItemClicked(e.Item, e);
    }
 }
        void DropDownItem_Click(object sender, EventArgs e)
        {
            // Steve
             _selectedItem = (sender as RibbonItem);

             TextBoxText = (sender as RibbonItem).Text;
             //Kevin Carbis
             RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem);
             OnDropDownItemClicked(ref ev);
        }
 private void rbcmbx_BrushStyle_DropDownItemClicked(object sender, RibbonItemEventArgs e)
 {
     PnlPaint.myPaint.IsBrushFill = true;
     string temp;
     temp = PnlPaint.myPaint.NameBrush = rbcmbx_BrushStyle.TextBoxText;
     if (PnlPaint.MyData.Count() > 1 && PnlPaint._isStillCanMove && PnlPaint._isStillCanReSize)
     {
         PnlPaint.MyData[PnlPaint.MyData.Count - 2].State.NameBrush = PnlPaint.myPaint.NameBrush;
         PnlPaint.MyData[PnlPaint.MyData.Count - 2].State.IsBrushFill = PnlPaint.myPaint.IsBrushFill;
         PnlPaint.MyData[PnlPaint.MyData.Count - 2].State.NameBrush = temp;
         PnlPaint.Invalidate();
     }
 }
Example #13
0
        void DropDownItem_Click(object sender, EventArgs e)
        {
            _selectedItem = (sender as RibbonItem);

            RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem);
            OnDropDownItemClicked(ref ev);
        }
Example #14
0
        void item_Click(object sender, EventArgs e)
        {
            //Console.WriteLine("item_Click: " + this.ToString());

             RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem);
             OnDropDownItemClicked(ref ev);
             // Steve
             _selectedItem = (sender as RibbonItem);
             //Kevin Carbis - For some reason this event never gets fired even though the above
             //function assigns a handler for it
             TextBoxText = (sender as RibbonItem).Text;
        }
Example #15
0
 private void ribbonComboBox1_DropDownItemClicked(object sender, RibbonItemEventArgs e)
 {
     MessageBox.Show("Item Clicked");
 }