private void BtnAddToArtShow_Click(object sender, EventArgs e)
        {
            var dialog = new FrmEditShowItem(null, (int)Presence.ArtistAttendingID);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                var item = new ListViewItem
                {
                    Text = dialog.ShowItem.ShowNumber.ToString()
                };
                item.SubItems.Add(dialog.ShowItem.Title);
                item.SubItems.Add(dialog.ShowItem.Media);
                var num = dialog.ShowItem.PrintNumber ?? "";
                if (dialog.ShowItem.PrintMaxNumber != null)
                {
                    num += " of " + dialog.ShowItem.PrintMaxNumber;
                }
                item.SubItems.Add(num);
                var bid = dialog.ShowItem.MinimumBid != null?Convert.ToSingle(dialog.ShowItem.MinimumBid).ToString("C") : "Not For Sale";

                item.SubItems.Add(bid);
                item.SubItems.Add(dialog.ShowItem.LocationCode);
                item.SubItems.Add(dialog.ShowItem.Category);
                item.SubItems.Add("No");
                item.Tag = dialog.ShowItem;
                lstArtShow.Items.Add(item);
            }
        }
        private void lstArtShow_DoubleClick(object sender, EventArgs e)
        {
            if (lstArtShow.SelectedItems.Count > 0)
            {
                var item     = lstArtShow.SelectedItems[0];
                var showItem = (ArtShowItem)item.Tag;
                var dialog   = new FrmEditShowItem(showItem);
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                item.Tag = dialog.ShowItem;
                item.SubItems[1].Text = dialog.ShowItem.Title;
                item.SubItems[2].Text = dialog.ShowItem.Media;
                var num = dialog.ShowItem.PrintNumber ?? "";
                if (dialog.ShowItem.PrintMaxNumber != null)
                {
                    num += " of " + dialog.ShowItem.PrintMaxNumber.ToString();
                }
                item.SubItems[3].Text = num;
                var bid = dialog.ShowItem.MinimumBid != null
                              ? Convert.ToSingle(dialog.ShowItem.MinimumBid).ToString("C")
                              : "Not For Sale";

                item.SubItems[4].Text = bid;
                item.SubItems[5].Text = dialog.ShowItem.LocationCode;
                item.SubItems[6].Text = dialog.ShowItem.Category;
            }
        }
        private void BtnEditItemArtShow_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem item in lstArtShow.SelectedItems)
            {
                var showItem = (ArtShowItem)item.Tag;
                var dialog   = new FrmEditShowItem(showItem);
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    continue;
                }
                item.Tag = dialog.ShowItem;
                item.SubItems[1].Text = dialog.ShowItem.Title;
                item.SubItems[2].Text = dialog.ShowItem.Media;
                var num = dialog.ShowItem.PrintNumber ?? "";
                if (dialog.ShowItem.PrintMaxNumber != null)
                {
                    num += " of " + dialog.ShowItem.PrintMaxNumber.ToString();
                }
                item.SubItems[3].Text = num;
                var bid = dialog.ShowItem.MinimumBid != null
                              ? Convert.ToSingle(dialog.ShowItem.MinimumBid).ToString("C")
                              : "Not For Sale";

                item.SubItems[4].Text = bid;
                item.SubItems[5].Text = dialog.ShowItem.LocationCode;
                item.SubItems[6].Text = dialog.ShowItem.Category;
            }
        }