protected override void OnExecute(object parameter) { var viewModel = parameter as LogInfoViewModel; var type = viewModel.Target as IType; var dialog = new DiffDataTypeViewModel(this.Initialize(viewModel, type)) { DisplayName = Resources.Title_CompareWithLatestRevision, }; dialog.ShowDialog(); }
protected override void OnExecute(object parameter) { var typeDescriptor = parameter as ITypeDescriptor; var type = typeDescriptor.Target; var dialog = new DiffDataTypeViewModel(this.Initialize(type)) { DisplayName = Resources.Title_CompareWithPreviousResivision, }; dialog.ShowDialog(); }