Remove unused file
This commit is contained in:
parent
44ce45aeca
commit
78bc774e8c
2 changed files with 2 additions and 54 deletions
|
|
@ -1,46 +0,0 @@
|
||||||
using MatterHackers.Agg.UI;
|
|
||||||
using MatterHackers.PolygonMesh;
|
|
||||||
using MatterHackers.VectorMath;
|
|
||||||
using System.Linq;
|
|
||||||
using MatterHackers.DataConverters3D;
|
|
||||||
|
|
||||||
namespace MatterHackers.MatterControl.PartPreviewWindow
|
|
||||||
{
|
|
||||||
internal class CopyUndoCommand : IUndoRedoCommand
|
|
||||||
{
|
|
||||||
private int newItemIndex;
|
|
||||||
private View3DWidget view3DWidget;
|
|
||||||
|
|
||||||
IObject3D addedObject3D;
|
|
||||||
|
|
||||||
bool wasLastItem;
|
|
||||||
|
|
||||||
public CopyUndoCommand(View3DWidget view3DWidget, int newItemIndex)
|
|
||||||
{
|
|
||||||
this.view3DWidget = view3DWidget;
|
|
||||||
this.newItemIndex = newItemIndex;
|
|
||||||
|
|
||||||
addedObject3D = view3DWidget.Scene.Children[newItemIndex];
|
|
||||||
|
|
||||||
wasLastItem = view3DWidget.Scene.Children.Last() == addedObject3D;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Undo()
|
|
||||||
{
|
|
||||||
view3DWidget.Scene.Children.RemoveAt(newItemIndex);
|
|
||||||
|
|
||||||
if (wasLastItem)
|
|
||||||
{
|
|
||||||
view3DWidget.Scene.SelectLastChild();
|
|
||||||
}
|
|
||||||
view3DWidget.PartHasBeenChanged();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Do()
|
|
||||||
{
|
|
||||||
view3DWidget.Scene.Children.Insert(newItemIndex, addedObject3D);
|
|
||||||
view3DWidget.Invalidate();
|
|
||||||
view3DWidget.Scene.SelectLastChild();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
10
Program.cs
10
Program.cs
|
|
@ -1,16 +1,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using MatterHackers.Agg.UI;
|
|
||||||
using MatterHackers.MatterControl.DataStorage;
|
|
||||||
using MatterHackers.MatterControl.SettingsManagement;
|
|
||||||
using Mindscape.Raygun4Net;
|
|
||||||
using MatterHackers.Agg.Platform;
|
using MatterHackers.Agg.Platform;
|
||||||
|
using MatterHackers.MatterControl.DataStorage;
|
||||||
|
using Mindscape.Raygun4Net;
|
||||||
|
|
||||||
namespace MatterHackers.MatterControl
|
namespace MatterHackers.MatterControl
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue