private void btnAdd_Click(object sender, EventArgs e)
        {
            var editor = new MatchActionEditorWindow();

            if (editor.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            var action = editor.MatchAction;

            this.actionList.Items.Add(Map(action));
            repo.Store(action);
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (this.actionList.SelectedItems.Count == 0)
            {
                return;
            }

            var matchAction = this.actionList.SelectedItems[0].Tag as GameImageMatchAction;
            var editor      = new MatchActionEditorWindow(matchAction);

            if (editor.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            var action = editor.MatchAction;
            var item   = this.actionList.SelectedItems[0];

            item.SubItems[0].Text = action.Type.ToString();
            item.SubItems[1].Text = String.Join(",", action.ComparisonImages.Select(x => new FileInfo(x.SourceImagePath).Name));
            item.SubItems[2].Text = action.SplitName;
            item.Tag = action;
            repo.Store(action);
        }