Пример #1
0
 private void CreateApropiatePartControl(VmIVRMenuElementBase menubase)
 {
     if (menubase is VmIVRMenuElementVoiceMessageRecorder)
     {
         UCMenuSpecificPart = new UcVoiceMessageRecorderProperties();
     }
     else if (menubase is VmIVRMenuElementCallTransfer)
     {
         UCMenuSpecificPart = new UcCallTransferProperties();
     }
 }
 protected VmIVRMenuElementBase(VmIVRMenuElementBase original)
 {
     Id = original.Id;
     Name = original.Name;
     TypeText = original.TypeText;
     TouchToneKey = original.TouchToneKey;
     Introduction = original.Introduction;
     AudioFile = original.AudioFile;
     NarratorType = original.NarratorType;
     ChildMenus = new List<VmIVRMenuElementBase>(original.ChildMenus);
     Parent = original.Parent;
 }
Пример #3
0
 protected VmIVRMenuElementBase(VmIVRMenuElementBase original)
 {
     Id           = original.Id;
     Name         = original.Name;
     TypeText     = original.TypeText;
     TouchToneKey = original.TouchToneKey;
     Introduction = original.Introduction;
     AudioFile    = original.AudioFile;
     NarratorType = original.NarratorType;
     ChildMenus   = new List <VmIVRMenuElementBase>(original.ChildMenus);
     Parent       = original.Parent;
 }
 private TreeViewItem CreateTreeNodeItem(VmIVRMenuElementBase menu)
 {
     TreeViewItem cur = new TreeViewItem();
     cur.Header = menu;
     return cur;
 }
Пример #5
0
 public VmProperties(VmIVRMenuElementBase menu)
 {
     CurrentIVRMenu = menu;
 }
 public UcMenuProperties(VmIVRMenuElementBase menu)
 {
     DataContext = new VmProperties(menu);
     InitializeComponent();
 }