Beispiel #1
0
    private void cubeChange()
    {
        coordinateEventArgs args = new coordinateEventArgs(cubeXInpute.text, cubeYInpute.text);

        EventHandler <coordinateEventArgs> handler = cubeChanged;

        if (handler != null)
        {
            handler(this, args);
        }
    }
Beispiel #2
0
    private void localScaleChange()
    {
        coordinateEventArgs args = new coordinateEventArgs(localScaleXInpute.text, localScaleYInpute.text);

        EventHandler <coordinateEventArgs> handler = localScaleChanged;

        if (handler != null)
        {
            handler(this, args);
        }
    }
Beispiel #3
0
    private void cubeChange(object sender, coordinateEventArgs e)
    {
        float tmpX = e.x == "" ? 0 : float.Parse(e.x);
        float tmpY = e.y == "" ? 0 : float.Parse(e.y);

        coordinateEventIntArgs args = new coordinateEventIntArgs(tmpX, tmpY);
        EventHandler <coordinateEventIntArgs> handler = cubeChanged;

        if (handler != null)
        {
            handler(this, args);
        }
    }
Beispiel #4
0
    private void localScaleChange(object sender, coordinateEventArgs e)
    {
        float tmpX = e.x == "" ? 0 : float.Parse(e.x);
        float tmpY = e.y == "" ? 0 : float.Parse(e.y);

        if (tmpX == 0)
        {
            tmpX = 0.01f;
        }
        if (tmpY == 0)
        {
            tmpY = 0.01f;
        }

        coordinateEventIntArgs args = new coordinateEventIntArgs(tmpX, tmpY);
        EventHandler <coordinateEventIntArgs> handler = localScaleChanged;

        if (handler != null)
        {
            handler(this, args);
        }
    }