private void AnchorA_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); if (parentControl != null) { if (DataContext is FlameEmitterPropertiesViewModel) { parentControl.GeneralMouse <FlameEmitterPropertiesViewModel>(false, MouseEventObjectType.flameEmitterSystem, sender, e); return; } } }
private void Shape_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); if (parentControl != null) { if (DataContext is ObjectFactoryPropertiesViewModel) { parentControl.GeneralMouse <ObjectFactoryPropertiesViewModel>(false, MouseEventObjectType.objectFactory, sender, e); return; } } }
private void AnchorA_MouseDown(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); if (parentControl != null) { if (DataContext is GunPropertiesViewModel) { parentControl.GeneralMouse <GunPropertiesViewModel>(true, MouseEventObjectType.gunSystem, sender, e); return; } } }
private void AnchorB_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); parentControl.GeneralMouse <WeldJointViewModel>(false, MouseEventObjectType.jointAnchorB, sender, e); }
private void AnchorB_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); parentControl.GeneralMouse <ReentryFlameEmitterPropertiesViewModel>(false, MouseEventObjectType.systemAnchorB, sender, e); }
private void Shape_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); parentControl.GeneralMouse <LfShapeViewModel>(false, MouseEventObjectType.shape, sender, e); }
private void ShapeBorder_MouseDown(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); parentControl.GeneralMouse <LfPointViewModel>(true, MouseEventObjectType.dragableBorder, sender, e); }
private void DragablePoint_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); parentControl.GeneralMouse <LfDragablePointViewModel>(false, MouseEventObjectType.dragablePoint, sender, e); }
private void LowerLimit_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); parentControl.GeneralMouse <PrismaticJointViewModel>(false, MouseEventObjectType.prismJointLowerLimit, sender, e); }
private void EllipseBorder_MouseUp(object sender, MouseButtonEventArgs e) { CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this); parentControl.GeneralMouse <LfStaticCircleViewModel>(false, MouseEventObjectType.dragableBorder, sender, e); }