private void button1_Click(object sender, EventArgs e) { var tn = treeView1.SelectedNode; var mm = tn.Tag as MenuModel; mm.MenuName = textBox1.Text.Trim(); mm.OrderNum = Convert.ToInt32(maskedTextBox1.Text); mm.Url = textBox3.Text.Trim(); mm.MenuDes = textBox4.Text; var ch = new Common.ClientFactory<IMenu>(); ch.CreateClient().EditMenu(mm); ch.Dispose(); Utils.Alert("修改成功"); }
private void button1_Click(object sender, EventArgs e) { var tn = treeView1.SelectedNode; var mm = tn.Tag as MenuModel; mm.MenuName = textBox1.Text.Trim(); mm.OrderNum = Convert.ToInt32(maskedTextBox1.Text); mm.Url = textBox3.Text.Trim(); mm.MenuDes = textBox4.Text; var ch = new Common.ClientFactory <IMenu>(); ch.CreateClient().EditMenu(mm); ch.Dispose(); Utils.Alert("修改成功"); }