protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var inspView = new InspectionView(); var inspViewModel = new InspectionViewModel(); var errView = new ErrorView(); var errViewModel = new ErrorViewModel(); //ViewModelをデータコンテキストに指定 inspView.DataContext = inspViewModel; errView.DataContext = errViewModel; inspView.Show(); }
private void editInspection(object o) { CurrentClaimPage = new InspectionView(); }
void ReleaseDesignerOutlets() { if (btnEdit != null) { btnEdit.Dispose(); btnEdit = null; } if (btnFinalizeSave != null) { btnFinalizeSave.Dispose(); btnFinalizeSave = null; } if (btnHome != null) { btnHome.Dispose(); btnHome = null; } if (btnLogOut != null) { btnLogOut.Dispose(); btnLogOut = null; } if (btnNotify != null) { btnNotify.Dispose(); btnNotify = null; } if (btnPrintPreview != null) { btnPrintPreview.Dispose(); btnPrintPreview = null; } if (btnSync != null) { btnSync.Dispose(); btnSync = null; } if (headerView != null) { headerView.Dispose(); headerView = null; } if (ImgWebView != null) { ImgWebView.Dispose(); ImgWebView = null; } if (InspectionView != null) { InspectionView.Dispose(); InspectionView = null; } if (lblAddress1 != null) { lblAddress1.Dispose(); lblAddress1 = null; } if (lblAddress2 != null) { lblAddress2.Dispose(); lblAddress2 = null; } if (lblCalDate != null) { lblCalDate.Dispose(); lblCalDate = null; } if (lblCalDay != null) { lblCalDay.Dispose(); lblCalDay = null; } if (lblFailMessage != null) { lblFailMessage.Dispose(); lblFailMessage = null; } if (lblInspectionDate != null) { lblInspectionDate.Dispose(); lblInspectionDate = null; } if (lblInspectionType != null) { lblInspectionType.Dispose(); lblInspectionType = null; } if (lblInspectorName != null) { lblInspectorName.Dispose(); lblInspectorName = null; } if (LblNotifyNbr != null) { LblNotifyNbr.Dispose(); LblNotifyNbr = null; } if (lblOwnerName != null) { lblOwnerName.Dispose(); lblOwnerName = null; } if (lblPathway != null) { lblPathway.Dispose(); lblPathway = null; } if (lblPhoneNumber != null) { lblPhoneNumber.Dispose(); lblPhoneNumber = null; } if (lblSyncNumber != null) { lblSyncNumber.Dispose(); lblSyncNumber = null; } if (leftlblInspectionDate != null) { leftlblInspectionDate.Dispose(); leftlblInspectionDate = null; } if (reportPhotoSegment != null) { reportPhotoSegment.Dispose(); reportPhotoSegment = null; } if (WebViewScrollView != null) { WebViewScrollView.Dispose(); WebViewScrollView = null; } if (WVReport != null) { WVReport.Dispose(); WVReport = null; } }