void LoadFile(string file) { PartList partList = PartList.LoadXML(file); partList.LoadParts(delegate { this.partList = partList; UpdateView(); }); }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { partList = new PartList(); UpdateView(); }