public CtrlValidationResult3() { InitializeComponent(); /*var bm = SystemIcons.Exclamation.ToBitmap(); lblWarning.Image = bm;*/ podlaTypu = new CtrlResultPanel2("Podľa typu"); podlaVyskytu = new CtrlResultPanel2("Podľa výskytu"); Clear(); }
public void AddProblem(string name, int count, string text, bool warning, int row, int col) { CtrlResultPanel2 p = new CtrlResultPanel2(name, count/*, text, warning*/); p.Margin = new Padding(0); p.Padding = new Padding(0); if (col == 0) left.Add(p); else right.Add(p); /*contentLayout.SuspendLayout(); contentLayout.Controls.Add(p, col, row); contentLayout.ResumeLayout(false);*/ }