private void SortToolbarButtonOptionGroupChanging(object sender, OptionGroupChangingEventArgs e) { if (e.NewChecked == _CategoryToolbarButton) { if (PropertySort != ePropertySort.CategorizedAlphabetical) PropertySort = ePropertySort.CategorizedAlphabetical; } else if (e.NewChecked == _SortToolbarButton) { if (PropertySort != ePropertySort.Alphabetical) PropertySort = ePropertySort.Alphabetical; } }
void IOwnerItemEvents.InvokeOptionGroupChanging(BaseItem item, OptionGroupChangingEventArgs e) { if(OptionGroupChanging!=null) OptionGroupChanging(item,e); }
private void OnNavBarOptionGroupChanging(object sender, OptionGroupChangingEventArgs e) { NavigationPanePanel oldPanel=null, newPanel=null; if(e.OldChecked!=null) oldPanel=this.GetPanel((ButtonItem)e.OldChecked); if(e.NewChecked!=null) newPanel = this.GetPanel((ButtonItem)e.NewChecked); if(newPanel==null) return; PanelChangingEventArgs epanel=new PanelChangingEventArgs(oldPanel,newPanel); InvokePanelChanging(epanel); e.Cancel=epanel.Cancel; }
/// <summary> /// Fires OptionGroupChanging event. /// </summary> protected virtual void InvokeOptionGroupChanging(OptionGroupChangingEventArgs e) { if (OptionGroupChanging != null) OptionGroupChanging(this, e); if (!e.Cancel) { IOwnerItemEvents owner = this.GetIOwnerItemEvents(); if (owner != null) owner.InvokeOptionGroupChanging(this, e); } }
void IOwnerItemEvents.InvokeOptionGroupChanging(BaseItem item, OptionGroupChangingEventArgs e) { }