예제 #1
0
 private void 编辑元素ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (focusRowIndex >= 0)
     {
         var item = modifierConfig.Versions[GetVersionIndex()].Pages[GetPageIndex()].Items[focusRowIndex];
         if (item != null)
         {
             UpdateFunctionItemBox.UpdateFunctionItem(item);
             LoadItems();
         }
     }
 }
예제 #2
0
        private void 新建元素ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var item = UpdateFunctionItemBox.UpdateFunctionItem();

            if (modifierConfig.Versions[GetVersionIndex()].Pages[GetPageIndex()].Items == null)
            {
                modifierConfig.Versions[GetVersionIndex()].Pages[GetPageIndex()].Items = new List <FunctionItem>();
            }

            if (item != null)
            {
                modifierConfig.Versions[GetVersionIndex()].Pages[GetPageIndex()].Items.Add(item);
                LoadItems();
            }
        }