예제 #1
0
        void vmsListBox_MouseMove(object sender, MouseEventArgs e)
        {
            VMListBoxItem item = isOnErrorLabelFor(e.Location);

            if (item != null && item.hasSolution())
            {
                Cursor.Current = Cursors.Hand;
            }
            else
            {
                Cursor.Current = Cursors.Default;
            }
        }
예제 #2
0
        void vmsListBox_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            VMListBoxItem vmlbi = isOnErrorLabelFor(e.Location);

            if (vmlbi == null || !vmlbi.hasSolution())
            {
                return;
            }

            AsyncAction a = vmlbi.Solve();

            if (a != null)
            {
                a.Completed += solveActionCompleted;
            }

            vmsListBox.Refresh();
        }