private void SetGameName_but_Click(object sender, EventArgs e) { TextInputForm ti = new TextInputForm(); if (ti.ShowDialog() == DialogResult.OK) { label1.Text = ti.Result; current_game.SetGameName(ti.Result); } }
private void Add_resource_but_Click(object sender, EventArgs e) { TextInputForm ti = new TextInputForm(); if (ti.ShowDialog() == DialogResult.OK) { Component comp = new Component(ti.Result, current_game); current_game.all_components.Add(comp); RefillRecipeList(); } }