示例#1
0
 public static VmIVRMenuElementBase GetMenuViewModel(IVRMenuElementBase menu)
 {
     VmIVRMenuElementBase result;
     if (menu is IVRMenuElementCallTransfer)
     {
         result = new VmIVRMenuElementCallTransfer((IVRMenuElementCallTransfer)menu);
     }
     else if (menu is IVRMenuElementInfoReader)
     {
         result = new VmIVRMenuElementInfoReader((IVRMenuElementInfoReader)menu);
     }
     else
     {
         result = new VmIVRMenuElementVoiceMessageRecorder((IVRMenuElementVoiceMessageRecorder)menu);
     }
     return result;
 }
 private VmIVRMenuElementCallTransfer(VmIVRMenuElementCallTransfer original)
     : base(original)
 {
     TransferDestinations = new List <TransferDestination>(original.TransferDestinations);
 }
 private VmIVRMenuElementCallTransfer(VmIVRMenuElementCallTransfer original)
     : base(original)
 {
     TransferDestinations=new List<TransferDestination>(original.TransferDestinations);
 }