private void Button_Reset_Click(object sender, EventArgs e) { Panel_Configuration.Hide(); Panel_Simulation.Hide(); ModifyPanelForPrey(); HideItemDetailComponents(); SetInitialStatus(); PictureBox_Graph.Image = new Bitmap(1300, 1000); }
private void Button_Configure_Click(object sender, EventArgs e) { Notification msg; if (GraphCreated) { msg = new Notification("Arrastra una imagen al mapa para añadir."); msg.ShowDialog(); ComboBox_Start.DataSource = this.AvailableVertices; Panel_Configuration.Show(); Panel_Configuration.BringToFront(); } else { msg = new Notification("Es necesario crear un grafo primero."); msg.ShowDialog(); } }
private void Button_Next_Click(object sender, EventArgs e) { if (ConfigurePhase == "Prey") { this.ConfigurePhase = "Predator"; ModifyPanelForPredator(); } else if (ConfigurePhase == "Predator") { this.ConfigurePhase = "Prey"; ModifyPanelForPrey(); HideItemDetailComponents(); Panel_Configuration.Hide(); Panel_Simulation.Hide(); Notification msg = new Notification("Presas y depredadores definidos correctamente."); msg.ShowDialog(); this.ItemsConfigurated = true; } }