コード例 #1
0
        void lbl_MouseClick(object sender, MouseEventArgs e)
        {
            ChangeListHistryLabel lbl = ((ChangeListHistryLabel)sender);

            if (e.X > lbl.Width - 20)
            {
                if (MessageView.ShowQuestionMsg("Delete Item") == DialogResult.OK)
                {
                    using (ChangeList c = new ChangeList(true))
                    {
                        c.ID = lbl.ChangeList.ID;
                        c.Delete();
                        ReloadhistryLabels();
                    }
                }
            }
        }