private void Init() { LogText += "Successfully login to Ozeki Phone System XE" + Environment.NewLine; // LogText = ""; ivrEngine = new IVREngineOPSSDK(); CommandStart = new RelayCommand(ShowApiExtensionPopup); CommandStop = new RelayCommand(StopIVREngine); CommandOpenIVRProject = new RelayCommand(OpenIVRProject); CommandTreeViewItemChanged = new RelayCommand <object>(TreeViewMenuItemChanged); ivrEngine.NotifyAction += ivrEngine_NotifyAction; UcPropertiesPart = new UcTipView(); }
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); } }