private void OnSelectionDoubleClick(object sender, MouseButtonEventArgs e) { if (SelectionDoubleClick != null) { PaintualUI.Controls.SelectionRectangle sr = (PaintualUI.Controls.SelectionRectangle)sender; SelectionDoubleClick(sender, new Engine.Utilities.Selection.SelectionEventArgs(sr.Rectangle)); } }
private void Grid_MouseDown(object sender, MouseButtonEventArgs e) { if (t_selectionMade == false) { // creates the selection rectangle and adds it to the container t_selection = new PaintualUI.Controls.SelectionRectangle(Glass, e.GetPosition(this), t_zoomFactor); t_selection.DoubleClick += T_selection_DoubleClick; t_drawingMode = Engine.DrawingBoardModes.Draw; } }