private void UpdataClearEstimate(object sender, RoutedEventArgs e)
 {
     ClearEstimateModel a = (ClearEstimateModel)this.dataGrid.SelectedItem;
     if (a != null)
     {
         ViewModelDeliver.Set(a);
         //BuyGivingDishes.OkSelect_Dish();
         ClearEstimateSettingWindow clearEstimateSettingWin = new ClearEstimateSettingWindow();
         clearEstimateSettingWin.ShowDifferentStyleWin(1);//修改操作,显示上下记录按钮
         clearEstimateSettingWin.ShowDialog();
     }
 }
Exemple #2
0
        private void UpdataClearEstimate(object sender, RoutedEventArgs e)
        {
            ClearEstimateModel a = (ClearEstimateModel)this.dataGrid.SelectedItem;

            if (a != null)
            {
                ViewModelDeliver.Set(a);
                //BuyGivingDishes.OkSelect_Dish();
                ClearEstimateSettingWindow clearEstimateSettingWin = new ClearEstimateSettingWindow();
                clearEstimateSettingWin.ShowDifferentStyleWin(1);//修改操作,显示上下记录按钮
                clearEstimateSettingWin.ShowDialog();
            }
        }
Exemple #3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DishBeanUtil       a = (DishBeanUtil)this.dataGrid.SelectedItem;
            ClearEstimateModel clearEstimateModel = new ClearEstimateModel();

            clearEstimateModel.SaveDishDetail(a);
            ViewModelDeliver.Set(clearEstimateModel);
            //BuyGivingDishes.OkSelect_Dish();
            this.Close();
            ClearEstimateSettingWindow clearEstimateSettingWindow = new ClearEstimateSettingWindow();

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