Example #1
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();
 }
Example #2
0
        private void LoadProject(object currentTree)
        {
            Messenger.Default.Send(new NotificationMessageEx(MsgDestination.WindowMain, MsgCommand.ShowSaveQuestion, DialogMessageEx.CreateQuestionBox("Do you wish to save current project before loads an other project?", (result =>
            {
                if (result == MessageBoxResult.Yes)
                {
                    SaveProject(currentTree);
                }
            }))));

            Messenger.Default.Send(new NotificationMessageEx(MsgDestination.WindowMain, MsgCommand.ShowLoadDialog, new FileOperationMessage((
                                                                                                                                                resPath) =>
            {
                CurrentProject          = new VmIVRProject(model.LoadProject(resPath));
                CurrentProject.SavePath = resPath;
            })));
        }
Example #3
0
 private void SaveToFile(VmIVRProject pr)
 {
     model.SaveProject(pr.GetModelProject(), pr.SavePath);
 }
Example #4
0
 private void SaveToFile( VmIVRProject pr)
 {
     model.SaveProject(pr.GetModelProject(), pr.SavePath);
 }
Example #5
0
        private void LoadProject(object currentTree)
        {
            Messenger.Default.Send(new NotificationMessageEx(MsgDestination.WindowMain, MsgCommand.ShowSaveQuestion, DialogMessageEx.CreateQuestionBox("Do you wish to save current project before loads an other project?", (result =>
            {
                if (result == MessageBoxResult.Yes)
                {
                    SaveProject(currentTree);
                }
            }))));

            Messenger.Default.Send(new NotificationMessageEx(MsgDestination.WindowMain, MsgCommand.ShowLoadDialog, new FileOperationMessage((
                resPath) =>
                {
                    CurrentProject = new VmIVRProject(model.LoadProject(resPath));
                    CurrentProject.SavePath = resPath;
                })));
        }
Example #6
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();
 }
Example #7
0
 private void Init()
 {
     IVRProject    = new VmIVRProject();
     CommandOk     = new RelayCommand(Ok);
     CommandCancel = new RelayCommand(Cancel);
 }
 private void Init()
 {
     IVRProject = new VmIVRProject();
     CommandOk = new RelayCommand(Ok);
     CommandCancel = new RelayCommand(Cancel);
 }