public WhiskerPointViewModel Clone()
        {
            WhiskerPointViewModel viewModel = new WhiskerPointViewModel(Model.Clone(), Parent);

            viewModel.CanvasXPosition = CanvasXPosition;
            viewModel.CanvasYPosition = CanvasYPosition;
            viewModel.CanvasWidth     = CanvasWidth;
            viewModel.CanvasHeight    = CanvasHeight;

            return(viewModel);
        }
        public override bool Equals(object x)
        {
            WhiskerPointViewModel other = x as WhiskerPointViewModel;

            if (other == null)
            {
                return(false);
            }

            return(Equals(other));
        }
 public bool Equals(WhiskerPointViewModel other)
 {
     return Model.Equals(other.Model);
 }
        public WhiskerPointViewModel Clone()
        {
            WhiskerPointViewModel viewModel = new WhiskerPointViewModel(Model.Clone(), Parent);

            viewModel.CanvasXPosition = CanvasXPosition;
            viewModel.CanvasYPosition = CanvasYPosition;
            viewModel.CanvasWidth = CanvasWidth;
            viewModel.CanvasHeight = CanvasHeight;

            return viewModel;
        }
Beispiel #5
0
 private void AddUndoAction(WhiskerPointViewModel whiskerPoint)
 {
     m_UndoActions.Add(whiskerPoint);
     UndoCommand.RaiseCanExecuteChangedNotification();
 }
 public bool Equals(WhiskerPointViewModel other)
 {
     return(Model.Equals(other.Model));
 }