private ucfEventArgs GetEventHandler() { ucfEventArgs ev = new ucfEventArgs(); ev.Page = cbSubfile.SelectedIndex; ev.Comment = tbComment.Text; if (cbDeck.SelectedIndex != 4) ev.Deck = (DeckFocus)cbDeck.SelectedIndex; else ev.Deck = DeckFocus.Target; return ev; }
protected virtual void PageChanged(ucfEventArgs e) { EventHandler eh = OnPageChanged; if (eh != null) eh(this, e); }