private void addButton_Click(object sender, EventArgs e)
        {
            var v = new EditGameDialog();

            if (v.ShowDialog() == DialogResult.OK)
            {
                AddItem(v.Game);
            }
        }
        private void useButton_Click(object sender, EventArgs e)
        {
            if (templateListView.SelectedItems.Count > 0)
            {
                var editGameDialog = new EditGameDialog((Template)templateListView.SelectedItems[0].Tag);

                if (editGameDialog.ShowDialog() == DialogResult.OK)
                {
                    _game        = editGameDialog.Game;
                    DialogResult = DialogResult.OK;
                    Close();
                }
            }
        }
        private void editButton_Click(object sender, EventArgs e)
        {
            if (gameListView.SelectedItems.Count > 0)
            {
                var item           = gameListView.SelectedItems[0];
                var editGameDialog = new EditGameDialog((Game)item.Tag);

                if (editGameDialog.ShowDialog() == DialogResult.OK)
                {
                    Game editedGame = editGameDialog.Game;

                    item.Name = editedGame.Name;
                    item.Text = editedGame.Name;
                    item.Tag  = editedGame;
                }
            }
        }