private void ButtonRead_Click(object sender, EventArgs e) { ModuleCommand module = new ModuleCommand(moduleCheckedText, functionCheckedText); XMLUnit xmlUnit = new XMLUnit(); atCommands = xmlUnit.XMLUnitRead(module); this.Close(); }
private void Form3_FormClosed(object sender, FormClosedEventArgs e) { XMLUnit xmlunit = new XMLUnit(); List <ATCommand> acs = xmlunit.XMLUnitRead(); if (acs.Count <= 0) { xmlunit.XMLUnitWrite(new ModuleCommand(), acs); } }