예제 #1
0
        public LogEntryControl(LogEntry logEntry)
        {
            InitializeComponent();

            this.LogEntry = logEntry;
            this.timestamp.Text = logEntry.Timestamp.ToString("HH:mm:ss", CultureInfo.InvariantCulture);
            this.entry.Text = logEntry.Entry;
        }
예제 #2
0
        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;
        }