private void generateTestData() { ViewPort testView, testView1; testView = new ViewPort(); testView.Name = "My Test View"; testView.ScreenCaptureX = 1; testView.ScreenCaptureY = 1; testView.SizeX = 300; testView.SizeY = 300; testView.Host = "localhost"; testView.Port = 12001; testView1 = new ViewPort(); testView1.Name = "TestView1"; testView1.ScreenCaptureX = 301; testView1.ScreenCaptureY = 1; testView1.SizeX = 300; testView1.SizeY = 300; testView1.Host = "localhost"; testView1.Port = 12002; viewPorts.Add(testView); viewPorts.Add(testView1); }
public ViewPortForm(ViewPort aViewPort) { viewPort = aViewPort; InitializeComponent(); }