예제 #1
0
 /// <summary>
 /// Mouse down event
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="e">Event arguments</param>
 protected void onMouseDownEventHandler(object sender, MouseEventArgs e)
 {
     mouseX = e.X;
     mouseY = e.Y;
     moved  = true;
     ControlPanel.SetPanels(this, panels);
     Focus();
     ControlPanel.DeactivateOther(this);
     isActive = true;
 }
예제 #2
0
        private void enter(object sender, EventArgs e)
        {
            string  text = Text.Clone() as string;
            Control p    = Parent;

            movePicture.Left = Left;
            movePicture.Top  = Top - movePicture.Height;
            p.Controls.Add(movePicture);
            ControlPanel.SetPanels(this, panels);
            ControlPanel.DeactivateOther(this);
            isActive = true;
        }