/// <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; }
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; }