public frmMain() { InitializeComponent(); comm = new CommunicationManager(); comm.newCompleteFrame += delegate(object sender, DataEventArgs e) { UpdateFrameList(e.Frame); }; resolution = (int)Math.Pow(2, (int)resolutionUpDown.Value); vref = (float)vrefUpDown.Value; }