public RotationCommand(IInputElement e, ObjectBase o) { X = 0; Y = 0; Z = 0; _obj = o; o.AttachCommand(this); e.KeyUp += E_KeyUp; PropertyChanged += (sender, args) => Scene.CurrentScene.Redraw(); }
public TranslateCommand(IInputElement e, ObjectBase o) { X = 0; Y = 0; Z = 0; _matrix = new Matrix(); _obj = o; o.AttachCommand(this); e.KeyUp += E_KeyUp; PropertyChanged += (sender, args) => Scene.CurrentScene.Redraw(); }