Draw functions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cody

    #1

    Draw functions

    Hi,
    I'd like to "pass" a function, as I write it (for example x^2), to a member
    of class, which draws this function. I dont know how to do.

    thanks
    fulvio


  • GMorris

    #2
    Re: Draw functions

    Sounds like a good application for delegates. I'm just starting to
    figure them out myself, but it looks like a very elegant and
    powerful feature of C#. Read up on them and see if it makes
    sense to you, might be just what you need.

    "cody" <codymckay@tisc alinet.it> wrote in message
    news:bqaj5v$q36 $1@lacerta.tisc alinet.it...[color=blue]
    > Hi,
    > I'd like to "pass" a function, as I write it (for example x^2), to a[/color]
    member[color=blue]
    > of class, which draws this function. I dont know how to do.
    >
    > thanks
    > fulvio
    >
    >[/color]


    Comment

    Working...