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