Ejemplo n.º 1
0
        public WhiskerPointViewModel Clone()
        {
            WhiskerPointViewModel viewModel = new WhiskerPointViewModel(Model.Clone(), Parent);

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

            return(viewModel);
        }
Ejemplo n.º 2
0
        public override bool Equals(object x)
        {
            WhiskerPointViewModel other = x as WhiskerPointViewModel;

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

            return(Equals(other));
        }
Ejemplo n.º 3
0
 public bool Equals(WhiskerPointViewModel other)
 {
     return Model.Equals(other.Model);
 }
Ejemplo n.º 4
0
        public WhiskerPointViewModel Clone()
        {
            WhiskerPointViewModel viewModel = new WhiskerPointViewModel(Model.Clone(), Parent);

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

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