/// <summary> /// Create a VDF based of data gathered /// </summary> static void CreateVDF() { vdf = new VDF(vdfName); VDFCatagory catagory = new VDFCatagory(catagoryName); catagory.AddItem(new VDFStringItem("Catagory String", catagoryString)); vdf.AddCatagory(catagory); vdf.AddItem(new VDFStringItem("String", stringToWrite)); vdf.AddItem(new VDFIntItem("Int", intToWrite)); }
private void addCatagoryToolStripMenuItem_Click(object sender, EventArgs e) { string catagoryName = "Catagory"; ShowInputDialog(ref catagoryName, "Catagory name"); if (string.IsNullOrEmpty(catagoryName)) { GeneralUtil.Error("The catagory name must not be empty."); return; } VDFCatagory catagory = new VDFCatagory(catagoryName); vdf.AddCatagory(catagory); LoadVDF(); }