//================================================================================ void MnuFileImportClick(object sender, EventArgs e) { if (lstRes.SelectedIndex == -1) { return; } try { importDlg.FileName = getKeyFileName(); if (importDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string key = keyPrefix + lstRes.SelectedItem.ToString(); CajApp.importNode(key, importDlg.FileName); setTxtValueText(CajApp.getValueOfNode(key)); //there's no option to edit node in the richTextBox. //(too much binary files. export/import is much better). } } catch (Exception ex) { MessageBox.Show("Can't import: " + ex.Message); } }