void Lines_ListAdd(object sender, ListChangedEventArg e) { MaxScrollY = lines.Count - visibleLines; if (scrollOnOutput) { ScrollY = MaxScrollY; } }
void Lines_ListRemove(object sender, ListChangedEventArg e) { BuildEventArgs bea = e.Element as BuildEventArgs; lock (eventsDic) eventsDic.RemoveAt(e.Index); string msg = (e.Element as BuildEventArgs).Message; lineCount -= string.IsNullOrEmpty(msg) ? 1 : (uint)Regex.Split(msg, "\r\n|\r|\n|\\\\n").Length; MaxScrollY = (int)(lineCount - visibleLines); }
void Ol_ListRemove(object sender, ListChangedEventArg e) { if (this.isPaged) { int p = e.Index / itemPerPage; int i = e.Index % itemPerPage; (items.Children [p] as Group).DeleteChild(i); } else { items.DeleteChild(e.Index); } }
void Ol_ListAdd(object sender, ListChangedEventArg e) { if (this.isPaged) { throw new NotImplementedException(); // int p = e.Index / itemPerPage; // int i = e.Index % itemPerPage; // (items.Children [p] as Group).InsertChild (i, e.Element); } else { loadItem(e.Element, items, dataTest); } }
void Lines_ListAdd(object sender, ListChangedEventArg e) { BuildEventArgs bea = e.Element as BuildEventArgs; lock (eventsDic) eventsDic.Add(lineCount); string msg = bea.Message; lineCount += string.IsNullOrEmpty(msg) ? 1 : (uint)Regex.Split(msg, "\r\n|\r|\n|\\\\n").Length; MaxScrollY = (int)(lineCount - visibleLines); if (scrollOnOutput) { ScrollY = MaxScrollY; } }
void Lines_ListRemove(object sender, ListChangedEventArg e) { MaxScrollY = lines.Count - visibleLines; }
void Messages_ListClear(object sender, ListChangedEventArg e) { reset(); RegisterForGraphicUpdate(); }