Exemplo n.º 1
0
        private void comboGame_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch ((string)comboGame.SelectedItem)
            {
            case "naked":
                break;

            case "normal":

                break;

            case "TenSeries":
                if (TenSeriesF == null)
                {
                    TenSeriesF = new PlayTenSeries();
                }

                PlayTenSeries np = (PlayTenSeries)TenSeriesF;
                if (!TenSeriesF.IsAccessible)
                {
                    TenSeriesF.Show();
                }
                break;
            }
        }
Exemplo n.º 2
0
        private void PlayTenSeries(ProcessFrameResult result)
        {
            if (result.Shot == null)
            {
                return;
            }

            alreadyManual                = false;
            useManualShotPositiong       = false;
            buttonPauseAndSelect.Enabled = true;

            PlayTenSeries np = (PlayTenSeries)TenSeriesF;

            if (!TenSeriesF.IsAccessible)
            {
                TenSeriesF.Show();
            }

            var lastshot = np.Shots.LastOrDefault();

            if (lastshot != null && (result.Shot.Time - lastshot.Time) < (TimeSpan.TicksPerSecond * 4))
            {
                return;
            }
            ScrollPaper();
            np.Shots.Add(result.Shot);

            np.pach();



            if (result.TargetScanWithResult != null)
            {
                using (Mat mm = result.TargetScanWithResult.Clone())
                {
                    nw.setImage(mm.Bitmap);
                }
            }
        }