/// <summary> /// 复制事件 /// </summary> /// <param Name="sender"></param> /// <param Name="e"></param> void copyItem_Click(object sender, System.EventArgs e) { if (_control is SVPageWidget) { SVSelectPanelObjs.copyOperator(); } }
/// <summary> /// 按下删除键 /// </summary> /// <param Name="sender"></param> /// <param Name="e"></param> void delItem_Click(object sender, System.EventArgs e) { SVPageWidget widget = _control as SVPageWidget; if (widget != null) { SVSelectPanelObjs.removeOperator(); } widget.ChildRemoveEvent(null, null); }
/// <summary> /// 处理按键消息 /// </summary> /// <param Name="msg"></param> /// <param Name="keyData"></param> /// <returns></returns> protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { switch (keyData) { case Keys.Up: SVSelectPanelObjs.up(); break; case Keys.Down: SVSelectPanelObjs.down(); break; case Keys.Left: SVSelectPanelObjs.left(); break; case Keys.Right: SVSelectPanelObjs.right(); break; } return(base.ProcessCmdKey(ref msg, keyData)); }