private void SetupAssistant_VisibleChanged(object sender, EventArgs e) { if (this.Visible == true) { xmlDoc = new XmlOutput(); } }
/************************************* END OF VARIABLE DEFINITIONS ********************************************************/ public Form_Main(XmlOutput xmlDoc) { InitializeComponent(); // Load default configuration configuration = Program.getConfiguration(); applyConfiguration(configuration); newgame = false; this.game = new Game(configuration.Teama, configuration.Teamb); // add the first set this.game.Sets.Add(new Set(1)); capture_stream = new CaptureStream(); capture = Program.Capture; list_timestamps = new List<long>(); imageList_screenshots = new ImageList(); imageList_screenshots.ImageSize = new Size(84, 68); codec = Emgu.CV.CvInvoke.CV_FOURCC('P', 'I', 'M', '1'); this.StartPosition = FormStartPosition.Manual; this.DesktopLocation = new Point(0, 0); this.xmlDoc = xmlDoc; xmlDoc.setGame(this.game); }