Exemple #1
0
        private DynamicBikingCmd GetBikingCmd()
        {
            if (m_hookHelper.Hook == null)
            {
                return(null);
            }

            DynamicBikingCmd dynamicBikingCmd = null;

            if (m_hookHelper.Hook is IToolbarControl2)
            {
                IToolbarControl2 toolbarCtrl = (IToolbarControl2)m_hookHelper.Hook;
                ICommandPool2    commandPool = toolbarCtrl.CommandPool as ICommandPool2;
                int      commantCount        = commandPool.Count;
                ICommand command             = null;
                for (int i = 0; i < commantCount; i++)
                {
                    command = commandPool.get_Command(i);
                    if (command is DynamicBikingCmd)
                    {
                        dynamicBikingCmd = (DynamicBikingCmd)command;
                    }
                }
            }

            return(dynamicBikingCmd);
        }
 public void SetDynamicBikingCmd(DynamicBikingCmd dynamicBikingCmd)
 {
     m_dynamicBikingCmd = dynamicBikingCmd;
 }
		public void SetDynamicBikingCmd(DynamicBikingCmd dynamicBikingCmd)
		{
			m_dynamicBikingCmd = dynamicBikingCmd;
		}