示例#1
0
 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;
     }
 }
示例#2
0
		void IOwnerItemEvents.InvokeOptionGroupChanging(BaseItem item, OptionGroupChangingEventArgs e)
		{
			if(OptionGroupChanging!=null)
				OptionGroupChanging(item,e);
		}
示例#3
0
		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;

		}
示例#4
0
 /// <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);
     }
 }
示例#5
0
        void IOwnerItemEvents.InvokeOptionGroupChanging(BaseItem item, OptionGroupChangingEventArgs e)
        {

        }