private void Canvas_DoubleClick(object sender, EventArgs e) { LivePreview.Select(this); EditObject(); //LivePreview.currentObject = null; }
private void Canvas_MouseDown(object sender, MouseEventArgs e) { isMouseDown = true; LivePreview.Select(this); mouseLastLocation = e.Location; Holder.Cursor = Config.OnMovingObject; }
public void AddObjectToPaper(DocumentObject obj) { if (obj == null) { return; } thePaper.Controls.Add(obj.Holder); //LivePreview.currentObject = obj; LivePreview.Select(obj); // Populate object table after adding object PopulateObjectList(); }
private void LayersTable_SelectionChanged(object sender, EventArgs e) { if (isPopulating || ignoreSelectionChange) { return; } if (layersTable.SelectedCells.Count <= 0) { LivePreview.UnSelect(); } else { int index = layersTable.SelectedCells[0].RowIndex; LivePreview.Select((DocumentObject)layersTable[layer_object.Index, index].Value); } }