示例#1
0
 public JournalEntry(JournalEntry e, string text)
 {
     TimeStamp = e.TimeStamp;
     Serial = e.Serial;
     Name = e.Name;
     Text = text;
     Color = e.Color;
     Type = e.Type;
     Font = e.Font;
     Source = e.Source;
 }
示例#2
0
 public JournalEntryAddedEventArgs(JournalEntry entry)
 {
     this.entry = entry;
 }
示例#3
0
        public static bool SetLine(int line, JournalEntry e)
        {
            Instance instance = CurrentInstance;

            lock (instance.SyncRoot) {
                int histLine = line - instance.LineOffset;

                if (histLine >= 0 && histLine < instance.History.Count) {
                    instance.History[histLine] = e;
                    return true;
                }
                else return false;
            }
        }