Пример #1
0
 /// <summary>
 /// Raises the PathSelected event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnPathSelected(object sender, WizardNavigationPathEventArgs e)
 {
     try
     {
         if (this.PathSelected != null)
         {
             this.PathSelected(sender, e);
         }
     }
     catch (Exception ex)
     {
         Trace.WriteLine(ex);
     }
 }
Пример #2
0
        /// <summary>
        /// Occurs when a path in the path list is selected
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnPathSelected(object sender, WizardNavigationPathEventArgs e)
        {
            if (_pathsLocked)
            {
                return;
            }

            // de-select the remaining paths, only one path may be selected at a time
            foreach (WizardNavigationPath existingPath in base.InnerList)
            {
                // if the path is not the one that has been selected, then de-select it
                if (string.Compare(existingPath.Name, e.Path.Name, true) == 0)
                {
                    continue;
                }
                else
                {
                    // make sure the path is not selected
                    existingPath.Selected = false;
                }
            }
        }
		/// <summary>
		/// Occurs when a path in the path list is selected
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void OnPathSelected(object sender, WizardNavigationPathEventArgs e)
		{
			if (_pathsLocked)
				return;
			
			// de-select the remaining paths, only one path may be selected at a time
			foreach(WizardNavigationPath existingPath in base.InnerList)
				// if the path is not the one that has been selected, then de-select it
				if (string.Compare(existingPath.Name, e.Path.Name, true) == 0)
					continue;
				else
					// make sure the path is not selected
					existingPath.Selected = false;
		}
		/// <summary>
		/// Raises the PathSelected event
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected virtual void OnPathSelected(object sender, WizardNavigationPathEventArgs e)
		{
			try
			{
				if (this.PathSelected != null)
					this.PathSelected(sender, e);
			}
			catch(Exception ex)
			{
				Trace.WriteLine(ex);
			}
		}