Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Good   good     = new Good();
            Window addGoods = new AddGoods(good);

            addGoods.Show();
            addGoods.Closed += AddGoods_Closed;
        }
Пример #2
0
        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;
        }
Пример #3
0
 private void товарыToolStripMenuItem_Click(object sender, EventArgs e)
 {
     formAddGoods.Show();
 }