Exemple #1
0
 /// <summary>
 /// 按钮点击事件-归还模具
 /// </summary>
 /// <param name="sender">事件源</param>
 /// <param name="e">事件参数</param>
 private void ReturnBtn_Click(object sender, RoutedEventArgs e)
 {
     if (MoldBaseInfoDG.SelectedItem != null)
     {
         MoldBaseInfo moldBaseInfo = MoldBaseInfoDG.SelectedItem as MoldBaseInfo;
         if (moldBaseInfo.State == ToolingManWPF.MoldPartInfoServiceReference.MoldStateType.NotReturned)
         {
             MoldReturn moldReturn = new MoldReturn(moldBaseInfo.MoldNR);
             moldReturn.ShowDialog();
         }
     }
 }
 /// <summary>
 /// 按钮点击事件-归还模具
 /// </summary>
 /// <param name="sender">事件源</param>
 /// <param name="e">事件参数</param>
 private void ReturnBtn_Click(object sender, RoutedEventArgs e)
 {
     if (MoldBaseInfoDG.SelectedItem != null)
     {
         MoldBaseInfo moldBaseInfo = MoldBaseInfoDG.SelectedItem as MoldBaseInfo;
         if (moldBaseInfo.State == ToolingManWPF.MoldPartInfoServiceReference.MoldStateType.NotReturned)
         {
             MoldReturn moldReturn = new MoldReturn(moldBaseInfo.MoldNR);
             moldReturn.ShowDialog();
         }
     }
 }