protected virtual void RaiseSaveButtonClick(MyGridView gv) { SaveButtonHandler handler = Events[saveButtonClick] as SaveButtonHandler; if (handler != null) { handler(this, gv); } }
public void SaveButton_Click(object sender, RoutedEventArgs e) { IHandler handler = new SaveButtonHandler(this); handler.Handle(); }