private void OnAddItemClick(object sender, EventArgs args)
        {
            StdFoxProAttrsDialog dlg = new StdFoxProAttrsDialog(attrsRepo);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                AddItem(dlg.Attr);
            }
        }
        private void OnEditItemClick(object sender, EventArgs args)
        {
            if (this.SelectedItems.Count > 0)
            {
                ListViewItem item = this.SelectedItems[0];

                int id = (int)item.Tag;
                SEPO_STD_FOXPRO_ATTRS attr = attrsRepo.GetById(id);

                StdFoxProAttrsDialog dlg = new StdFoxProAttrsDialog(attr, attrsRepo);

                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    UpdateItem(item, dlg.Attr);
                }
            }
        }