public void ToggleReleaseFlag(Release release)
        {
            if (release.IsFlagged)
            {
                if (Dialogs.Confirm("Unflag release?"))
                {
                    release.IsFlagged = false;
                    //using (var transaction = this.CollectionManager.BeginTransaction())
                    //{
                    this.CollectionManager.Save(release);
                    //transaction.Commit();
                    //}
                    CollectionManagerGlobal.OnCollectionChanged();
                }
            }
            else
            {
                FlagReleaseWindow flagWindow = new FlagReleaseWindow();
                flagWindow.Owner       = Window.GetWindow(this.mainCollectionView);
                flagWindow.FlagMessage = release.FlagMessage;
                if (flagWindow.ShowDialog() == true)
                {
                    release.IsFlagged   = true;
                    release.FlagMessage = flagWindow.FlagMessage;

                    //using (var transaction = this.CollectionManager.BeginTransaction())
                    //{
                    this.CollectionManager.Save(release);
                    //transaction.Commit();
                    //}

                    CollectionManagerGlobal.OnCollectionChanged();
                }
            }
        }
        public void ToggleReleaseFlag(Release release)
        {
            if (release.IsFlagged)
            {
                if (Dialogs.Confirm("Unflag release?"))
                {
                    release.IsFlagged = false;
                    //using (var transaction = this.CollectionManager.BeginTransaction())
                    //{
                    this.CollectionManager.Save(release);
                    //transaction.Commit();
                    //}
                    CollectionManagerGlobal.OnCollectionChanged();
                }
            }
            else
            {
                FlagReleaseWindow flagWindow = new FlagReleaseWindow();
                flagWindow.Owner = Window.GetWindow(this.mainCollectionView);
                flagWindow.FlagMessage = release.FlagMessage;
                if (flagWindow.ShowDialog() == true)
                {
                    release.IsFlagged = true;
                    release.FlagMessage = flagWindow.FlagMessage;

                    //using (var transaction = this.CollectionManager.BeginTransaction())
                    //{
                    this.CollectionManager.Save(release);
                    //transaction.Commit();
                    //}

                    CollectionManagerGlobal.OnCollectionChanged();
                }
            }
        }