private void OutlineButton_Click(object sender, RoutedEventArgs e) { var outlineWindowVM = new OutlineWindowViewModel(_vm.DarwinDatabase, _vm.SelectedFin); var outlineWindow = new OutlineWindow(outlineWindowVM); outlineWindow.Show(); }
private void ViewOutlineInformationButton_Click(object sender, RoutedEventArgs e) { if (_vm.SelectedResult != null) { var selectedDBFin = _vm.FullyLoadFinByID(_vm.SelectedResult.DatabaseID); selectedDBFin.FinOutline.ChainPoints = _vm.SelectedResult.dbContour; DatabaseFin copyUnknown = new DatabaseFin(_vm.DatabaseFin); copyUnknown.FinOutline.ChainPoints = _vm.SelectedResult.unknownContour; var outlineWindowVM = new OutlineWindowViewModel(_vm.Database, selectedDBFin, copyUnknown, _vm.SelectedResult); var outlineWindow = new OutlineWindow(outlineWindowVM); outlineWindow.Show(); } }