예제 #1
0
파일: FormFieldCard.cs 프로젝트: xmatakt/DP
        private void downButton_Click(object sender, EventArgs e)
        {
            EditorMainPanel.AutoScroll = false;
            MoveDown(true);
            EditorMainPanel.AutoScroll = true;
            EditorMainPanel.ScrollControlIntoView(this);

            MainControl.Commands.Add(new Classes.CardCommand(this, Enums.CardCommandEnum.MoveDown));
            MainControl.UpdateBackButtonVisibility();
        }
예제 #2
0
파일: FormFieldCard.cs 프로젝트: xmatakt/DP
        private void topPanel_MouseUp(object sender, MouseEventArgs e)
        {
            //EditorMainPanel.AutoScroll = true;
            Cursor   = Cursors.Default;
            move     = false;
            Location = new Point(Location.X, OriginalY);

            CardMouseUp?.Invoke(sender, e);
            EditorMainPanel.ScrollControlIntoView(this);
        }