void Init() { //Console.Out.WriteLine("Program Starts..."); Global global = Global.getInstance(); VANETOrganization.GenerateNodes(); VANETOrganization.GenerateOrganizations(); VANETOrganization.GenerateNetworks(); VANETOrganization.GenerateNodePositionsAllRandom(); EventManager handler = new EventManager(); handler.LoadEvents(); global.mainForm = (MainForm)this; inited = true; }
public static void LoadEvents(bool clear) { EventManager manager = new EventManager(); manager.LoadEvents(clear); }
private void generateObjectMotionToolStripMenuItem_Click(object sender, EventArgs e) { Global global = Global.getInstance(); EventGenerator generator = new EventGenerator(); generator.GenerateRandomObjectMotionEvents(true, 30, 5, global.objectNum, NodeType.OBJECT, global.eventsFileName); EventManager manager = new EventManager(); manager.LoadEvents(true); }
public static void LoadEvents() { EventManager manager = new EventManager(); manager.LoadEvents(); }