Esempio n. 1
0
 private void TreeViewMenuItemChanged(object obj)
 {
     if (obj == null)
     {
         UcPropertiesPart = new UcTipView();
     }
     else if (obj is IVRMenuElementBase)
     {
         UcPropertiesPart = new UcMenuProperties((VmIVRMenuElementBase)obj);
     }
     else if (obj is TreeViewItem)
     {
         UcPropertiesPart = new UcMenuProperties((VmIVRMenuElementBase)((TreeViewItem)obj).Header);
     }
 }
Esempio n. 2
0
 private void Init()
 {
     CurrentProject = new VmIVRProject();
     CurrentProject.IVRMenuRoot = new VmIVRMenuElementInfoReader();
     CommandDeleteMenu = new RelayCommand<TreeViewItem>(DeleteIvrMenu);
     CommandTreeViewItemChanged = new RelayCommand<object>(TreeViewMenuItemChanged);
     CommandNewProject = new RelayCommand<object>(CreateNewProject);
     CommandLoadProject = new RelayCommand<object>(LoadProject);
     CommandSaveProject = new RelayCommand<object>(SaveProject);
     CommandSaveAsProject = new RelayCommand<object>(SaveAsProject);
     UcPropertiesPart = new UcTipView();
 }