private void Button_Click(object sender, RoutedEventArgs e) { Good good = new Good(); Window addGoods = new AddGoods(good); addGoods.Show(); addGoods.Closed += AddGoods_Closed; }
private void BtnAction_Click(object sender, RoutedEventArgs e) { Button button = (Button)sender; string goodId = button.Uid; Good good = Util.ToObject <Good>(new GoodService().GetGoodById(goodId)); Window addGoods = new AddGoods(good); addGoods.Title = "编辑商品"; addGoods.Show(); addGoods.Closed += AddGoods_Closed; }
private void товарыToolStripMenuItem_Click(object sender, EventArgs e) { formAddGoods.Show(); }