예제 #1
0
        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);
        }
예제 #2
0
        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);
        }