Beispiel #1
0
 void Lines_ListAdd(object sender, ListChangedEventArg e)
 {
     MaxScrollY = lines.Count - visibleLines;
     if (scrollOnOutput)
     {
         ScrollY = MaxScrollY;
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 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);
     }
 }
Beispiel #4
0
        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);
            }
        }
Beispiel #5
0
        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;
            }
        }
Beispiel #6
0
 void Lines_ListRemove(object sender, ListChangedEventArg e)
 {
     MaxScrollY = lines.Count - visibleLines;
 }
Beispiel #7
0
 void Messages_ListClear(object sender, ListChangedEventArg e)
 {
     reset();
     RegisterForGraphicUpdate();
 }