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); } } }
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); } }
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); } }