コード例 #1
0
 public void OnButtonItemClicked(ref RibbonItemEventArgs e)
 {
     if (ButtonItemClicked != null)
     {
         ButtonItemClicked(e.Item, e);
     }
 }
コード例 #2
0
 public virtual void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
    if (DropDownItemClicked != null)
    {
       DropDownItemClicked(this, e);
    }
 }
コード例 #3
0
 public void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
     if (DropDownItemClicked != null)
     {
         DropDownItemClicked(e.Item, e);
     }
 }
コード例 #4
0
ファイル: RibbonButton.cs プロジェクト: prepare/office-ribbon
 public virtual void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
     if (DropDownItemClicked != null)
     {
         DropDownItemClicked(this, e);
     }
 }
コード例 #5
0
ファイル: RibbonButton.cs プロジェクト: prepare/office-ribbon
        void DropDownItem_Click(object sender, EventArgs e)
        {
            _selectedItem = (sender as RibbonItem);

            RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem);

            OnDropDownItemClicked(ref ev);
        }
コード例 #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);
        }
コード例 #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);
            }
        }
コード例 #8
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);
      }
コード例 #9
0
 public void OnButtonItemClicked(ref RibbonItemEventArgs e)
 {
    if (ButtonItemClicked != null)
    {
       ButtonItemClicked(e.Item, e);
    }
 }
コード例 #10
0
 public void OnDropDownItemClicked(ref RibbonItemEventArgs e)
 {
    if (DropDownItemClicked != null)
    {
       DropDownItemClicked(e.Item, e);
    }
 }
コード例 #11
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);
        }
コード例 #12
0
 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();
     }
 }
コード例 #13
0
        void DropDownItem_Click(object sender, EventArgs e)
        {
            _selectedItem = (sender as RibbonItem);

            RibbonItemEventArgs ev = new RibbonItemEventArgs(sender as RibbonItem);
            OnDropDownItemClicked(ref ev);
        }
コード例 #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;
        }
コード例 #15
0
ファイル: TestForm.cs プロジェクト: JamesMasterman/SeaScan
 private void ribbonComboBox1_DropDownItemClicked(object sender, RibbonItemEventArgs e)
 {
     MessageBox.Show("Item Clicked");
 }