private void frmCustomerUpdate_Load(object sender, EventArgs e) { BindLevel(); Agent a = new Agent(); a.GetModel(_agentName); txt_Name.Text = a.Name; txt_Phone.Text=a.Phone; cbx_Level.Text = a.LevelName; txt_Address.Text = a.Address; txt_Contact.Text = a.Contact; txt_Fox.Text = a.Fox; txt_Tel.Text = a.Tel; }
private void frmCustomerUpdate_Load(object sender, EventArgs e) { BindLevel(); // 自定义函数 Agent a = new Agent(); // 本项目 Service 文件夹内的 Agent 类(属于 Model 类) a.GetModel(_agentName); txt_Name.Text = a.Name; txt_Phone.Text = a.Phone; cbx_Level.Text = a.LevelName; txt_Address.Text = a.Address; txt_Contact.Text = a.Contact; txt_Fox.Text = a.Fox; txt_Tel.Text = a.Tel; }