示例#1
0
        private void Analyze(object sender, RoutedEventArgs e)
        {
            this.list_class.Items.Clear();

            try
            {
                this.cdList = new List <ClassDiagram>();
                this.cdList = XMLUtil.Analyze(txt_fileName.Text);

                foreach (ClassDiagram cd in this.cdList)
                {
                    this.list_class.Items.Add(cd.Name);
                }
            }
            catch
            {
                MessageBox.Show("XML分析失败,请检查文件是否正确", "错误");
            }
        }