Exemplo n.º 1
0
        private void Canvas_DoubleClick(object sender, EventArgs e)
        {
            LivePreview.Select(this);
            EditObject();

            //LivePreview.currentObject = null;
        }
Exemplo n.º 2
0
        private void Canvas_MouseDown(object sender, MouseEventArgs e)
        {
            isMouseDown = true;
            LivePreview.Select(this);

            mouseLastLocation = e.Location;
            Holder.Cursor     = Config.OnMovingObject;
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        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);
            }
        }