30 lines
755 B
C#
30 lines
755 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using System.Xml.Serialization;
|
|
namespace U8AppMain
|
|
{
|
|
public partial class FrmMain : Form
|
|
{
|
|
public FrmMain()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void BtnBomImport_Click(object sender, EventArgs e)
|
|
{
|
|
var bom = new Bom.ufinterface();
|
|
bom.Bom.ComponentBodies.Add(new Bom.ComponentBody());
|
|
bom.Bom.ComponentBodies.Add(new Bom.ComponentBody());
|
|
|
|
MessageBox.Show(XmlHelper.XmlSerialize(bom, Encoding.UTF8));
|
|
}
|
|
}
|
|
}
|