コード例 #1
0
ファイル: SeriesRow.cs プロジェクト: bidule21/BidaSius
        public void DrawNFill()
        {
            //pictureBox1.Image = TargetDrawHelper.DrawTarget(shotsSerie).Bitmap
            //  pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage;
            imageBox1.Image          = TargetDrawHelper.DrawTarget(shotsSerie);
            imageBox1.FunctionalMode = ImageBox.FunctionalModeOption.Minimum;
            imageBox1.SizeMode       = PictureBoxSizeMode.CenterImage;
            var sum  = shotsSerie.Sum(a => a.SingleValue);
            var sumP = shotsSerie.Sum(a => a.Value);

            labSerieTotal.Text = sum.ToString() + " (" + sumP.ToString() + ") ";
            dataGridViewSerie.RowHeadersVisible = false;
            dataGridViewSerie.DataSource        = shotsSerie;
        }
コード例 #2
0
ファイル: Final.cs プロジェクト: BlasterBB/BidaSius
        private void DrawAllTarget()
        {
            TargetIB.FunctionalMode = Emgu.CV.UI.ImageBox.FunctionalModeOption.PanAndZoom;
            if (true)
            {
                TargetIB.Image = TargetDrawHelper.DrawTarget(Shots);
            }
            else
            {
                var sss  = (Shots.Count() / strzNaSerie) * strzNaSerie;
                var skip = sss;
                if (Shots.Count() % strzNaSerie == 0)
                {
                    skip = sss - strzNaSerie;
                }

                var serie = Shots.Skip(Math.Max(0, skip)).ToList();
                TargetIB.Image = TargetDrawHelper.DrawTarget(serie);
            }
            TargetIB.HideScrolls = false;
        }