Esempio n. 1
0
        public VmMain()
        {
            // model = new MockModel();
            model = new RealModel();

            IVRToolboxElementList = new ObservableCollection <VmIVRMenuElementBase>(ConverterMenu.GetMenuViewModels(model.GetToolboxElements()));
            ToolboxSource         = CollectionViewSource.GetDefaultView(IVRToolboxElementList);

            Init();
        }
Esempio n. 2
0
        //public VmIVRProject(IVRProjectConfig mProject)
        //{
        //    Name = mProject.Name;
        //    MenuList = ConverterMenu.GetMenuViewModels(mProject.MenuList);
        //  //  IVRMenuRoot = ConverterMenu.GetMenuViewModel(mProject.IVRMenuRoot);

        //}
        public VmIVRProject(IVRProject mProject)
        {
            Name        = mProject.Name;
            MenuList    = ConverterMenu.GetMenuViewModels(mProject.MenuList);
            IVRMenuRoot = ConverterMenu.GetMenuViewModel(mProject.IVRMenuRoot);
        }
Esempio n. 3
0
 private void OpenIVRProject()
 {
     Messenger.Default.Send(new NotificationMessageEx(MsgDestination.WindowMain, MsgCommand.ShowLoadDialog, new FileOperationMessage((
                                                                                                                                         resPath) =>
     {
         CurrentProject    = new ProjectStore().LoadProject(resPath);
         LoadedProjectPath = resPath;
         LogEvent("IVR project Loaded from " + LoadedProjectPath);
         Messenger.Default.Send(new NotificationMessageEx(MsgDestination.WindowMain, MsgCommand.PopulateTreeView, ConverterMenu.GetMenuViewModels(CurrentProject.MenuList)));
     })));
 }