public LogEntryControl(LogEntry logEntry) { InitializeComponent(); this.LogEntry = logEntry; this.timestamp.Text = logEntry.Timestamp.ToString("HH:mm:ss", CultureInfo.InvariantCulture); this.entry.Text = logEntry.Entry; }
private void AddEntry(LogEntry logEntry) { LogEntryControl logEntryControl = new LogEntryControl(logEntry); this.entriesPanel.Controls.Add(logEntryControl); //this.entriesPanel.Controls.SetChildIndex(logEntry, 0); //logEntry.Location = new System.Drawing.Point(3, 186); //logEntry.Name = "logEntry1"; logEntryControl.Size = new System.Drawing.Size(this.entriesPanel.Width - 30, 22); //logEntry.TabIndex = 0; }