protected override void OnFormClosing(FormClosingEventArgs e) { DEBUGGER = null; base.OnFormClosing(e); }
public GraphFormer(SimGlobalRoutes SPS) { DEBUGGER = this; StartX = SPS.StartX; StartY = SPS.StartY; MenuContextuel = new ContextMenu(); MenuContextuel.MenuItems.Add(new MenuItem("Automatic", new EventHandler(ChoixAutomatique))); MenuContextuel.MenuItems.Add(new MenuItem("Step by step", new EventHandler(ChoixPasAPas))); InitializeComponent(); BoutonAEtoile.DropDownMenu = MenuContextuel; G = SPS;// SimPathStore.Default; NouveauGraphe(); Mode = Action.Dessiner; }
public override CmdResult ExecuteRequest(CmdRequest args) { GraphFormer gf = new GraphFormer(SimGlobalRoutes.Instance); gf.Show(); return Success("Ran " + Name); }