コード例 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     DishBeanUtil a = (DishBeanUtil)this.dataGrid.SelectedItem;
     DishGivingModel dishGivingModel = new DishGivingModel();
     dishGivingModel.SaveDishDetail(a);
     ViewModelDeliver.Set(dishGivingModel);
     //BuyGivingDishes.OkSelect_Dish();
     this.Close();
     BuyGivingSetting BuyGivingSettingWin = new BuyGivingSetting();
     BuyGivingSettingWin.ShowDifferentStyleWin(0);//新增操作,不显示上下记录按钮
     BuyGivingSettingWin.ShowDialog();
 }
コード例 #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DishBeanUtil    a = (DishBeanUtil)this.dataGrid.SelectedItem;
            DishGivingModel dishGivingModel = new DishGivingModel();

            dishGivingModel.SaveDishDetail(a);
            ViewModelDeliver.Set(dishGivingModel);
            //BuyGivingDishes.OkSelect_Dish();
            this.Close();
            BuyGivingSetting BuyGivingSettingWin = new BuyGivingSetting();

            BuyGivingSettingWin.ShowDifferentStyleWin(0);//新增操作,不显示上下记录按钮
            BuyGivingSettingWin.ShowDialog();
        }