Esempio n. 1
0
        private void ClickedOpenProject(object sender, RoutedEventArgs e)
        {
            var Dialog = new OpenFileDialog();

            Dialog.Filter = "プロジェクトファイル (*.projm)|*.projm|全てのファイル (*.*)|*.*";

            var ReturnValue = Dialog.ShowDialog();


            if (ReturnValue == true)
            {
                var cmd = new MainViewModel.LoadProjectFile();
                cmd.LoadedProjectFileAbsolutePath = Dialog.FileName;

                RecevierOfViewModel.CommandViewModelTo(cmd);

                var Ins = new CMainView.MainViewItemsAvailableValueManager(this);
                Ins.EnableMainViewItems();
                UpdateMaterialDataGrid();

                var anotherCmd = new MainViewModel.GetProjectName();
                anotherCmd.LoadedProjectFileAbsolutePath = Dialog.FileName;

                RecevierOfViewModel.CommandViewModelTo(anotherCmd);

                //ウィンドウタイトル変更
                this.Title = "「お借りした素材一覧」生成器" + "――" + anotherCmd.FetchedProjectName;
            }
        }
Esempio n. 2
0
        void IReceiverCommandFromView.CommandViewTo(LoadProjectFiles InputCmd)
        {
            var cmd = new MainViewModel.LoadProjectFile();

            cmd.LoadedProjectFileAbsolutePath = InputCmd.LoadedProjectFileAbsolutePath;

            RecevierOfViewModel.CommandViewModelTo(cmd);

            var Ins = new CMainView.MainViewItemsAvailableValueManager(this);

            Ins.EnableMainViewItems();
            UpdateMaterialDataGrid();

            //ウィンドウタイトル変更
            Title = "「お借りした素材一覧」生成器" + "――" + InputCmd.ProjectName;
        }