public void LstIndex_Click(object sender, EventArgs e) { if (E_Globals.Editorindex == 0 || E_Globals.Editorindex > Constants.MAX_RECIPE) { return; } E_Crafting.RecipeEditorInit(); }
public void BtnDelete_Click(object sender, EventArgs e) { int tmpindex = 0; if (E_Globals.Editorindex == 0 || E_Globals.Editorindex > Constants.MAX_RECIPE) { return; } E_Crafting.ClearRecipe(E_Globals.Editorindex); tmpindex = lstIndex.SelectedIndex; lstIndex.Items.RemoveAt(E_Globals.Editorindex - 1); lstIndex.Items.Insert(E_Globals.Editorindex - 1, E_Globals.Editorindex + ": " + E_Crafting.Recipe[E_Globals.Editorindex].Name); lstIndex.SelectedIndex = tmpindex; lstIngredients.Items.Clear(); E_Crafting.RecipeEditorInit(); }
private void FrmRecipe_Load(object sender, EventArgs e) { E_Crafting.RecipeEditorInit(); }