コード例 #1
0
ファイル: MenuForm.cs プロジェクト: hijushen/WindowDemo
 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("修改成功");
 }
コード例 #2
0
        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("修改成功");
        }