Exemplo n.º 1
0
        private void ScrollWindowPage(bool scrollUp)
        {
            if (this.InvokeRequired)
            {
                ScrollWindowPageDelegate s = new ScrollWindowPageDelegate(ScrollWindowPage);
                this.Invoke(s, new object[] { scrollUp });
            }
            else
            {
                IceTabPage currentWindow;
                if (parent.Parent.Name == "FormMain")
                {
                    currentWindow = FormMain.Instance.CurrentWindow;
                }
                else
                {
                    currentWindow = (IceTabPage)parent.Parent;
                }

                if (currentWindow.WindowStyle != IceTabPage.WindowType.ChannelList)
                {
                    currentWindow.TextWindow.ScrollWindowPage(scrollUp);
                }
            }
        }
Exemplo n.º 2
0
 private void ScrollWindowPage(bool scrollUp)
 {
     if (this.InvokeRequired)
     {
         ScrollWindowPageDelegate s = new ScrollWindowPageDelegate(ScrollWindowPage);
         this.Invoke(s, new object[] { scrollUp });
     }
     else
     {
         if (FormMain.Instance.CurrentWindowType != IceTabPage.WindowType.ChannelList)
             FormMain.Instance.CurrentWindow.TextWindow.ScrollWindowPage(scrollUp);
     }
 }
Exemplo n.º 3
0
        private void ScrollWindowPage(bool scrollUp)
        {
            if (this.InvokeRequired)
            {
                ScrollWindowPageDelegate s = new ScrollWindowPageDelegate(ScrollWindowPage);
                this.Invoke(s, new object[] { scrollUp });
            }
            else
            {
                IceTabPage currentWindow;
                if (parent.Parent.Name == "FormMain")
                    currentWindow = FormMain.Instance.CurrentWindow;
                else
                    currentWindow = (IceTabPage)parent.Parent;

                if (currentWindow.WindowStyle != IceTabPage.WindowType.ChannelList)
                    currentWindow.TextWindow.ScrollWindowPage(scrollUp);
            }
        }