示例#1
0
 /// <summary>
 /// 复制事件
 /// </summary>
 /// <param Name="sender"></param>
 /// <param Name="e"></param>
 void copyItem_Click(object sender, System.EventArgs e)
 {
     if (_control is SVPageWidget)
     {
         SVSelectPanelObjs.copyOperator();
     }
 }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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));
        }