private void OnComparisonSelectorFlyoutClosed(ComparisonSelectorFlyoutVM flyoutVm)
        {
            if (!flyoutVm.IsProceed)
            {
                return;
            }

            if (flyoutVm.SelectedComparison is NewComparisonVM)
            {
                DockingViewManager.Instance.DocumentManager.OpenDocument(StatComparisonDocumentServiceBase.CreateUri())
                .ContinueWith(t =>
                {
                    if (t.Result == null)
                    {
                        this.LogError("failed to create stat comparison document");
                    }
                    else
                    {
                        App.BeginInvokeBackground(() =>
                        {
                            this.AddToComparisonDocument(flyoutVm.TankKeys, t.Result);
                        });
                    }
                });
            }
            else
            {
                var comparisonVm = (AvailableComparisonVM)flyoutVm.SelectedComparison;
                this.AddToComparisonDocument(flyoutVm.TankKeys, comparisonVm.DocumentVM);
                DockingViewManager.Instance.DocumentManager.SelectDocument(comparisonVm.Document);
            }
        }
 private void ExecuteNewComparison(object sender, ExecutedRoutedEventArgs e)
 {
     DockingViewManager.Instance.DocumentManager.OpenDocument(StatComparisonDocumentServiceBase.CreateUri());
 }