public void Execute(System.Windows.Point startClick, System.Windows.Point endClick) { Animation a = Animation.getInstance(); // if (a.touchRegions.Count <= 12) // { TouchRegion t = new TouchRegion { X = endClick.X, Y = endClick.Y, number = a.touchRegions.Count + 1 }; _viewModel.TouchRegions.Add(t); a.addTouchRegion(t); // } }
internal void addTouchRegion(TouchRegion t) { touchRegions.Add(t); }