private void openToolStripMenuItem_Click(object sender, EventArgs e) { openFileDialog1.FileName = "Project1"; openFileDialog1.Filter = "XML Files|*.xml"; var xx = openFileDialog1.ShowDialog(); if (xx == DialogResult.Cancel) { return; } strFileName = openFileDialog1.FileName; NgProject pr2 = null; try { pr2 = CommonFunctions.FromXml(strFileName); } catch (Exception ex) { MessageBox.Show(ex.Message); } if (pr2 == null || pr2.Menues.Count == 0) { return; } else { pr = CommonFunctions.ToNgProgect2(pr2); SetTreeView(); } SetServices(); }