Esempio n. 1
0
        ///<summary>Execute New Video Project Command</summary>
        void DoNewVideoProjectCmd(object prm = null)
        {
            VideoProjectVModel vm = new VideoProjectVModel()
            {
                Entity = new VideoProject()
            };

            this.EnsureWorkspace(null, () => vm);
        }
Esempio n. 2
0
        void OpenFile(string sourceFileName)
        {
            if (sourceFileName != null)
            {
                string ext = System.IO.Path.GetExtension(sourceFileName).ToLower();
                switch (ext)
                {
                case ".xmv":
                    VideoProjectVModel vvm = new VideoProjectVModel();
                    this.EnsureWorkspace(null, () => vvm);
                    vvm.LoadProject(sourceFileName);
                    break;

                default:
                    ImageProjectVModel vm = new ImageProjectVModel();
                    this.EnsureWorkspace(null, () => vm);
                    vm.LoadProject(sourceFileName);
                    break;
                }
            }
        }