コード例 #1
0
 public LinkFileWindow(LinkFileViewModel aLinkFileViewModel)
 {
     InitializeComponent();
     linkFileViewModel = aLinkFileViewModel;
     this.DataContext = linkFileViewModel;
 }
コード例 #2
0
        private void OnLinkFileCommand()
        {
            //FilesDictionarys = new Dictionary<string, Dictionary<string, ProjectFilesEntity>>();

            //IsBusy = true;

            //ProductDomainContextForFile.
            //LoadOperation<ProductManager.Web.Model.project_files> loadOperationProjectFiles =
            //        ProductDomainContextForFile.Load<ProductManager.Web.Model.project_files>(ProductDomainContextForFile.GetProject_filesQuery());
            //loadOperationProjectFiles.Completed += loadOperationAllProjectFiles_Completed;
            //loadOperationProjectFiles.Completed += ShowLinkFileWindow;
            //             LinkFileViewModel linkFileViewModel = new LinkFileViewModel(SelectProjectEntity.ManufactureNumber,
            //                                                                     ProjectEntityList, DepartmentDictionary,
            //                                                                     UserEntityDictionary, FileTypeEntityDictionary);
            //             LinkFileWindow linkFileWindow = new LinkFileWindow(linkFileViewModel);
            //             linkFileWindow.Closed += linkFileWindow_Closed;
            //             linkFileWindow.Show();

            LinkFileViewModel linkFileViewModel = new LinkFileViewModel(SelectProjectEntity.ManufactureNumber,
                                                                               ProjectEntityList, DepartmentDictionary,
                                                                               UserEntityDictionary, FileTypeEntityDictionary);
            LinkFileWindow linkFileWindow = new LinkFileWindow(linkFileViewModel);
            linkFileWindow.Closed += linkFileWindow_Closed;
            linkFileWindow.Show();
        }