public StartEventData() { editor_name = ""; ev = null; occurrence = new Dictionary<string, float>(); foreach (String name in StartEventData.sector_names()) { occurrence[name] = 0.0f; } }
public NewEvent(EventData ed) { InitializeComponent(); if (ed == null) { event_data = new EventData(); } else { event_data = ed; } update_form(); }
private void btn_create_Click(object sender, EventArgs e) { ev = new EventData(); switch (cb_events.SelectedIndex) { case 1: ev.text = String.Format("All players make a {0} test. Count up the number of dice that meet or excede {1}. If it is higher than {2}," + " then it is a success, otherwise a failure.\n\nTarget: {1}\nSuccesses Needed: {2}", tb_skill.Text, num_target.Value, num_successes.Value); ActionData a = new ActionData(); a.event_data = new EventData(); a.text = "Success"; ev.actions.Add(a); a = new ActionData(); a.event_data = new EventData(); a.text = "Failure"; ev.actions.Add(a); break; default: break; } this.Close(); }
public NewEvent() { InitializeComponent(); event_data = new EventData(); }