コード例 #1
0
 private void FillObject(GenericObjectDetails obj)
 {
     tm.Id        = obj.MOId;
     tm.MOId      = obj.MOId;
     tm.RtgStep   = obj.RtgStep;
     tm.StatusODP = obj.MOStatus;
 }
コード例 #2
0
 private void lsODPdETAILS_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (lsODPdETAILS.SelectedItems.Count > 0)
     {
         GenericObjectDetails obj = lsODPdETAILS.SelectedItem as GenericObjectDetails;
         if (obj != null)
         {
             dpEndDate.IsEnabled = false;
             txtPhase.Text       = obj.Operation;
             txtOdp.Text         = obj.MONo;
             FillObject(obj);
             txtOdp.Focus();
         }
     }
 }