public void ResetForm(DataGridView vsc) { SuspendLayout(); ControlTable ltold = lt; lt = new ControlTable(this, 30, 8, 20); statictoplines = 0; tabscalar = (double)FontSel(vsc.Columns[2].DefaultCellStyle.Font, vsc.Font).SizeInPoints / 8.25; if (vsc != null) { Point3D tpos; string name; TargetClass.GetTargetPosition(out name, out tpos); // tpos.? is NAN if no target for (int i = 0; i < vsc.Rows.Count; i++) { UpdateRow(vsc, vsc.Rows[i], true, 200000, tpos); // insert at end, give it a large number if (lt.Full) { break; } } } labelExt_NoSystems.Visible = (lt.Count == statictoplines); UpdateEventsOnControls(this); if (ltold != null) { ltold.Dispose(); ltold = null; } ResumeLayout(); }
public void ResetForm(DataGridView vsc) { SuspendLayout(); ControlTable ltold = lt; lt = new ControlTable(this, 30, 8, 20); statictoplines = 0; tabscalar = (double)FontSel(vsc.Columns[2].DefaultCellStyle.Font, vsc.Font).SizeInPoints / 8.25; if (vsc != null) { Point3D tpos; string name; TargetClass.GetTargetPosition(out name, out tpos); // tpos.? is NAN if no target for (int i = 0; i < vsc.Rows.Count; i++) { UpdateRow(vsc, vsc.Rows[i], true, 200000 , tpos); // insert at end, give it a large number if (lt.Full) break; } } labelExt_NoSystems.Visible = (lt.Count == statictoplines); UpdateEventsOnControls(this); if (ltold != null) { ltold.Dispose(); ltold = null; } ResumeLayout(); }