protected virtual bool OnSelectedItemChanging(BackstageTabItem backstageTabItem) { if (this.SelectedItemChanging == null) { return(false); } BackstageItemChangingEventArgs e = new BackstageItemChangingEventArgs(backstageTabItem, this.selectedItem); this.SelectedItemChanging((object)this, e); return(e.Cancel); }
protected virtual bool OnSelectedItemChanging(BackstageTabItem backstageTabItem) { if (this.SelectedItemChanging != null) { BackstageItemChangingEventArgs args = new BackstageItemChangingEventArgs(backstageTabItem, this.selectedItem); this.SelectedItemChanging(this, args); return(args.Cancel); } return(false); }