using System; using System.Collections.Generic; using System.Linq; using System.Text; using DevExpress.XtraGrid.Views.Grid; using System.Data; using Lskj.Model; using System.Windows.Forms; namespace Lskj.Control.Model { /// /// ChartView右键菜单 /// public class ChartViewMenuStrip : BaseRightMenu { /// /// 图表控件 /// protected ChartControlEx ChartControlObj; /// /// 说明:设置右键菜单 /// 创建人:龚宇超 /// 创建日期:2018-01-29 /// 修改人: /// 修改日期: /// 修改备注: /// 版本:1.0 /// /// The view. /// The table. /// The model. /// The control. /// The menu. public override void InitRightMenus(System.Windows.Forms.Control view, DataTable table, DynamicModel model, MyControl control = null, ContextMenuStrip menu = null) { base.InitRightMenus(view, table, model, control, menu); this.ChartControlObj = view as ChartControlEx; if (this.ChartControlObj != null) { this.ChartControlObj.ContextMenuStrip = base.MenuStrip; } } } }