コード例 #1
0
        private void diemPhat_MD(object sender, MouseEventArgs e)
        {
            mouseHold = true;
            var nutCuonArg = new NutCuonDuocNhanArgs()
            {
                duocNhanXuong = true,
            };

            if (nhanNhaNutCuon != null)
            {
                nhanNhaNutCuon(this, nutCuonArg);
            }
        }
コード例 #2
0
        private void diemPhat_MU(object sender, MouseEventArgs e)
        {
            mouseHold = false;
            var nutCuonArg = new NutCuonDuocNhanArgs()
            {
                duocNhanXuong = false,
            };

            if (nhanNhaNutCuon != null)
            {
                nhanNhaNutCuon(this, nutCuonArg);
            }
            var phanTramThanhCuon = (double)panel_redPoint.Location.X / (double)(bienDoTruot) * 100;

            var arg = new cuonVideoArgs()
            {
                phanTramThanhCuon = phanTramThanhCuon,
            };

            if (thanhCuonDangTruot != null)
            {
                thanhCuonDangTruot(this, arg);
            }
        }