コード例 #1
0
 /// <summary>
 /// Вызов события при нажатии правой кнопки мышки по выпадающему списку.
 /// </summary>
 public void InvokeRightMouseDown(object sender, XPObjectEventArgs e)
 {
     if (RightMouseDown != null)
     {
         RightMouseDown(sender, e);
     }
 }
コード例 #2
0
 void DBFormItem_RightMouseDown(object sender, XPObjectEventArgs e)
 {
     DBFormItemBase item = FindItemByTableType(e.TableType);
     if (item != null)
     {
         CreateItem(item);
         if (item.View is DBViewInterface)
         {
             DBViewInterface view = item.View as DBViewInterface;
             view.FocusRecord(e.Record);
         }
     }
 }
コード例 #3
0
        void ControlEdit_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                GridLookUpEdit edit = sender as GridLookUpEdit;
                if (edit != null && edit.EditValue is XPBaseObject)
                {
                    XPObjectEventArgs arg = new XPObjectEventArgs();
                    arg.TableType = TableType;
                    arg.Record    = edit.EditValue as XPBaseObject;

                    if (RightMouseDown != null)
                    {
                        RightMouseDown(sender, arg);
                    }

                    if (DBInterface != null)
                    {
                        DBInterface.InvokeRightMouseDown(sender, arg);
                    }
                }
            }
        }
コード例 #4
0
 void dbInterface_RightMouseDown(object sender, XPObjectEventArgs e)
 {
     InvokeRightMouseDown(sender, e);
 }