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); } }
public void OnDropDownItemClicked(ref RibbonItemEventArgs e) { if (DropDownItemClicked != null) { DropDownItemClicked(e.Item, e); } }
void DropDownItem_Click(object sender, EventArgs e) { _selectedItem = (sender as RibbonItem); RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem); OnDropDownItemClicked(ref ev); }
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); }
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); }
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(); } }
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; }
private void ribbonComboBox1_DropDownItemClicked(object sender, RibbonItemEventArgs e) { MessageBox.Show("Item Clicked"); }