예제 #1
0
        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;
                }
            }
        }
예제 #2
0
        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;
                }
            }
        }
예제 #3
0
        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);
        }
예제 #6
0
        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);
        }
예제 #9
0
        private void LowerLimit_MouseUp(object sender, MouseButtonEventArgs e)
        {
            CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this);

            parentControl.GeneralMouse <PrismaticJointViewModel>(false, MouseEventObjectType.prismJointLowerLimit, sender, e);
        }
예제 #10
0
        private void EllipseBorder_MouseUp(object sender, MouseButtonEventArgs e)
        {
            CompoundObjectUserControl parentControl = ParentalFinder.FindParent <CompoundObjectUserControl>(this);

            parentControl.GeneralMouse <LfStaticCircleViewModel>(false, MouseEventObjectType.dragableBorder, sender, e);
        }