示例#1
0
 protected internal virtual void OnCellClick(CellEventArgs cea)
 {
     if (this.CellClick != null)
     {
         this.CellClick(this, cea);
     }
 }
示例#2
0
 public CellEventArgs GetCellAtPoint(Point pt)
 {
     Rectangle arrowBoxRectangle = this.GetArrowBoxRectangle();
     CellEventArgs args = null;
     if (arrowBoxRectangle.Contains(pt))
     {
         return null;
     }
     if (this.m_textBoxItem != null)
     {
         ItemTemplate textBoxTemplate = this.TextBoxTemplate;
         int ci = textBoxTemplate.GetCellClick(pt.X, pt.Y, this.m_textBoxItem);
         Cell c = null;
         if (ci >= 0)
         {
             c = textBoxTemplate[ci];
         }
         if ((this.m_selectedItemIndex >= 0) && (this.m_selectedItemIndex < this.m_items.Count))
         {
             args = new CellEventArgs(this.m_items[this.m_selectedItemIndex], c, -1, ci, 0);
         }
     }
     return args;
 }