Exemple #1
0
 //this needs to recieve dimension updates
 public void launchMenu(ContinueCommandDelegate command, NodeClick click)
 {
     ContinueDelegate = command;
     Click            = click;
     Left             = Math.Max(0, (int)click.Point.X - WIDTH / 2);
     Top     = Math.Min((int)click.Point.Y + HEIGHT / 2 - scroll, screen - 2 * HEIGHT);
     Visible = Visibility.Visible;
 }
 public IntMenuEventArgs(NodeClick click, Action <NodeClick, int> command)
 {
     Click   = click;
     Command = (c, p) => command(c, p);
 }