Пример #1
0
 void OnDisplaySegment(DisplaySegEventArgs e)
 {
     var copy = DisplaySegment;
     if (copy != null) copy(this, e);
 }
Пример #2
0
 private void ShowSeg(object o, DisplaySegEventArgs e)
 {
     yValueIndex += 3;
     PictureBox seg = new PictureBox();
     seg.Size = new Size(e.BitmapToDisplay.Width, e.BitmapToDisplay.Height);
     seg.Location = new Point(1, yValueIndex);
     yValueIndex += e.BitmapToDisplay.Height + 3;
     seg.BackgroundImage = e.BitmapToDisplay;
     segView.Controls.Add(seg);
     Label lbl = new Label();
     lbl.AutoSize = true;
     lbl.Text = e.Location.ToString();
     lbl.Location = new Point(1, yValueIndex);
     yValueIndex += lbl.Size.Height;
     segView.Controls.Add(lbl);
     yValueIndex -= 10;
     //SaveSegmentsToFile(e.BitmapToDisplay);
 }