//use this instead
    public static ResxFile Load(string path)
    {
        ResxFile result = new ResxFile(path);

        result.CreateDataNodes();
        return(result);
    }
Ejemplo n.º 2
0
    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;
    }
Ejemplo n.º 3
0
    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;
    }