public FormToDisplayPlate(cPlate PlateToDisplay, cScreening CompleteScreening) { //this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; // this.WindowToDisplayEntireScreening = WindowToDisplayEntireScreening; this.PlateToDisplay = PlateToDisplay; this.CompleteScreening = CompleteScreening; this.CurrentScreening = CompleteScreening; this.LUT = this.CurrentScreening.GlobalInfo.LUT; this.AssociatedPlate = PlateToDisplay; bool ResMiss = false; this.MouseDoubleClick += new MouseEventHandler(this.FormToDisplayPlate_MouseDoubleClick); this.MouseClick += new MouseEventHandler(this.FormToDisplayPlate_MouseClick); ValuesMatrix = PlateToDisplay.GetAverageValueDescTable1(CompleteScreening.ListDescriptors.CurrentSelectedDescriptor, out ResMiss); System.Windows.Forms.ToolTip ToolTip = new System.Windows.Forms.ToolTip(); ToolTip.SetToolTip(this, PlateToDisplay.Name); for (int j = 0; j < ValuesMatrix.Length; j++) for (int i = 0; i < ValuesMatrix[0].Length; i++) { if(double.IsNaN(ValuesMatrix[j][i])) continue; if (ValuesMatrix[j][i] > Max) Max = ValuesMatrix[j][i]; if (ValuesMatrix[j][i] < Min) Min = ValuesMatrix[j][i]; } this.SetNewCellSize(5); //DisplayMatrix(); // this.Update(); }