//use this instead public static ResxFile Load(string path) { ResxFile result = new ResxFile(path); result.CreateDataNodes(); return(result); }
private void btnLoad_Click(object sender, EventArgs e) { file = ResxFile.Load("XMLFile1.xml"); //open a openfiledialog here to get the actual filename var source = new BindingSource(file.DataNodes, null); dataGridView1.DataSource = source; }
private void btnLoad_Click(object sender, EventArgs e) { file = ResxFile.Load("XMLFile1.xml"); var bindingList = new BindingList <IResxFileDataNode>(file.DataNodes); var source = new BindingSource(bindingList, null); dataGridView1.DataSource = source; }