/// <summary> /// Вызов события при нажатии правой кнопки мышки по выпадающему списку. /// </summary> public void InvokeRightMouseDown(object sender, XPObjectEventArgs e) { if (RightMouseDown != null) { RightMouseDown(sender, e); } }
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); } } }
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); } } } }
void dbInterface_RightMouseDown(object sender, XPObjectEventArgs e) { InvokeRightMouseDown(sender, e); }