示例#1
0
 public void LstIndex_Click(object sender, EventArgs e)
 {
     if (E_Globals.Editorindex == 0 || E_Globals.Editorindex > Constants.MAX_RECIPE)
     {
         return;
     }
     E_Crafting.RecipeEditorInit();
 }
示例#2
0
        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();
        }
示例#3
0
 private void FrmRecipe_Load(object sender, EventArgs e)
 {
     E_Crafting.RecipeEditorInit();
 }