protected virtual void OnStashTabReceived(StashTabReceivedEventArgs e) { var handler = StashTabReceived; if (handler != null) { handler(this, e); } }
void _stashFetcher_StashTabReceived(object sender, StashTabReceivedEventArgs e) { tabStash.AddStashTab(e.StashTab, new StashGrid(_itemTable, _imageCache)); lblStatus.Text = String.Format("Received tab {0}/{1}", e.StashTab.TabInfo.Index + 1, e.StashTab.TabCount); }