public void updateList()
 {
     if (this.loginHistory != null)
     {
         this.pnlList.Controls.Clear();
         int y = 0;
         foreach (LoginHistoryInfo info in this.loginHistory)
         {
             LoginHistoryPanelLine line = new LoginHistoryPanelLine {
                 Location = new Point(0, y)
             };
             line.init(info.ipAddress, info.LastLogin, info.duration);
             this.pnlList.Controls.Add(line);
             y += line.Height;
         }
         this.pnlList.ResumeLayout(false);
         this.pnlList.PerformLayout();
     }
 }
 public void updateList()
 {
     if (this.loginHistory != null)
     {
         this.pnlList.Controls.Clear();
         int y = 0;
         foreach (LoginHistoryInfo info in this.loginHistory)
         {
             LoginHistoryPanelLine line = new LoginHistoryPanelLine {
                 Location = new Point(0, y)
             };
             line.init(info.ipAddress, info.LastLogin, info.duration);
             this.pnlList.Controls.Add(line);
             y += line.Height;
         }
         this.pnlList.ResumeLayout(false);
         this.pnlList.PerformLayout();
     }
 }