示例#1
0
        /// <summary>
        /// todo:新增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            WinCutPlanAddOrEdit winCpAdd = new WinCutPlanAddOrEdit(null);

            winCpAdd.ShowDialog();
            Query();
        }
示例#2
0
 private void btn_Change_Click(object sender, RoutedEventArgs e)
 {
     if (DGDetail.SelectedItem == null)
     {
         MessageBox.Show("请先选中一条数据!");
         return;
     }
     if (DGDetail.SelectedItems.Count > 1)
     {
         MessageBox.Show("每次只能选择一条");
         return;
     }
     else
     {
         CutPlan             cutplan  = (CutPlan)DGDetail.SelectedItem;
         WinCutPlanAddOrEdit winCpAdd = new WinCutPlanAddOrEdit(cutplan.Id);
         winCpAdd.ShowDialog();
         Query();
     }
 }