/// <summary> /// Function that get executed when a cell has been changed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CellUpdated(object sender, DataGridViewCellEventArgs e) { if (!loadingFile) { XMLprocessing.XMLWrite(openFiles[e.ColumnIndex - 1], keyList[e.RowIndex], (string)table.Rows[e.RowIndex].Cells[e.ColumnIndex].Value); } }
/// <summary> /// Function that adds: /// - the current XML file to the languageList List /// - the XML file path to the openFile List /// calls FillTable function /// </summary> /// <param name="path">Path to XML source file</param> /// <param name="name">XML source file name</param> public void AddFileEntry(string path, string name) { try { languageLists.Add(XMLprocessing.XMLRead(path)); openFiles.Add(path); FillTable(path, name); } catch (XmlException e) { MessageBox.Show("Error occured: " + e); } }