/// <summary>
 /// Handles the <see cref="VerticalTabControl.SelectedTabPageChanged"/> event of the navigation
 /// tab control.
 /// </summary>
 /// <remarks>
 /// This makes sure each page has the information it requires from the other pages.
 /// </remarks>
 /// <param name="sender">The object that raised the event.</param>
 /// <param name="e">A <see cref="VerticalTabControl.TabPageEventArgs"/> describing the event arguments.</param>
 private void verticalTabControl1_SelectedTabPageChanged(object sender, VerticalTabControl.TabPageEventArgs e)
 {
     if (e.TabPage == vtpScript)
     {
         ViewModel.ScriptEditorVM.ModFiles = ftvModFilesEditor.Sources;
     }
 }
示例#2
0
		/// <summary>
		/// Handles the <see cref="VerticalTabControl.SelectedTabPageChanged"/> event of the wizard control.
		/// </summary>
		/// <remarks>
		/// This validates each page as it is navigated away from.
		/// </remarks>
		/// <param name="sender">The object that raised the event.</param>
		/// <param name="e">A <see cref="VerticalTabControl.TabPageEventArgs"/> describing the event arguments.</param>
		private void wizSetup_SelectedTabPageChanged(object sender, VerticalTabControl.TabPageEventArgs e)
		{
			if (e.TabPage == vtpDirectories)
			{
				if (!ViewModel.SetupDirectoriesControlVM.ValidateSettings())
					wizSetup.SelectedTabPage = e.TabPage;
			}
		}
示例#3
0
 /// <summary>
 ///   Handles the <see cref="VerticalTabControl.SelectedTabPageChanged" /> event of the main
 ///   navigation tab control.
 /// </summary>
 /// <remarks>
 ///   This handles initialization of tabs as the selected tab changes.
 /// </remarks>
 /// <param name="sender">The object that raised the event.</param>
 /// <param name="e">A <see cref="VerticalTabControl.TabPageEventArgs" /> describing the event arguments.</param>
 private void vtcFomodData_SelectedTabPageChanged(object sender, VerticalTabControl.TabPageEventArgs e)
 {
     if (e.TabPage == vtpDownloadLocations)
     {
         UpdateDownloadLocationsList();
     }
     else if (e.TabPage == vtpReadme)
     {
         SetReadmeDefault();
     }
     else if (e.TabPage == vtpScript)
     {
         SetScriptDefault();
     }
     else if (e.TabPage == vtpInfo)
     {
         m_booInfoEntered = true;
         SetInfoDefault();
     }
 }