3 public class PlotMenuItem
5 private EventHandler callback_;
12 public PlotMenuItem (EventHandler callback)
16 PlotMenuItem child = new PlotMenuItem ();
17 child.Callback += new EventHandler (callback);
20 public static int Main ()
22 PlotMenuItem pmi = new PlotMenuItem (new EventHandler (MenuItem_Click));
23 pmi.Callback (null, null);
31 static void MenuItem_Click (object sender, EventArgs e)
36 public EventHandler Callback {
37 get { return callback_; }
38 set { callback_ = value; }