private void KFlyTab_TabStateChanged(object sender, TabStateChangedEventArgs e) { if (!e.IsConnected) _isUpToDate = false; if (!_isUpToDate && e.IsConnected && e.IsSelected) { Download(); } }
// This method raises the Connection Event, but only if this is the selected tab private void RaiseTabStateChangedEvent() { TabStateChangedEventArgs newEventArgs = new TabStateChangedEventArgs(KFlyTab.TabStateChangedEvent) { IsConnected = this.IsConnected, IsSelected = this.IsSelected }; RaiseEvent(newEventArgs); }
private void KFlyTab_TabStateChanged(object sender, TabStateChangedEventArgs e) { }