Ejemplo n.º 1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Loads the project settings.
 /// </summary>
 /// <param name="settings">Initialization settings.</param>
 /// ------------------------------------------------------------------------------------
 public static void InitSettings(IProjectSpecificSettingsKeyProvider settings)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     InitSettings(settings.ProjectSpecificSettingsKey);
 }
Ejemplo n.º 2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="FwChooserDlg"/> class.
		/// </summary>
		/// <param name="list">The possibility list used to populate the tree</param>
		/// <param name="initiallySelectedHvos">The sequence of HVOs of initially selected
		/// possibilities</param>
		/// <param name="helptopicProvider">object that knows how to serve up help topics</param>
		/// <param name="sHelpTopicKey">Topic to display if user clicks Help button (can be
		/// specific to the possibility list being displayed)</param>
		/// <param name="projSettingsKey">The project settings key.</param>
		/// ------------------------------------------------------------------------------------
		public FwChooserDlg(ICmPossibilityList list, int[] initiallySelectedHvos,
			IHelpTopicProvider helptopicProvider, string sHelpTopicKey,
			IProjectSpecificSettingsKeyProvider projSettingsKey) : this()
		{
			if (initiallySelectedHvos == null)
				throw new ArgumentNullException("initiallySelectedHvos");
			if (list == null)
				throw new ArgumentNullException("list");
			m_list = list;
			m_cache = m_list.Cache;
			m_initiallySelectedHvos = new List<int>(initiallySelectedHvos);
			m_helptopicProvider = helptopicProvider;
			m_helpTopicKey = sHelpTopicKey;
			m_projSettingsKey = projSettingsKey;

			SetTitle();
			tvPossibilities.Load(m_list, m_initiallySelectedHvos, SelectedPossibilitiesLabel);
		}
Ejemplo n.º 3
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Loads the project settings.
		/// </summary>
		/// <param name="settings">Initialization settings.</param>
		/// ------------------------------------------------------------------------------------
		public static void InitSettings(IProjectSpecificSettingsKeyProvider settings)
		{
			if (settings == null)
				throw new ArgumentNullException("settings");
			InitSettings(settings.ProjectSpecificSettingsKey);
		}
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryChooserDlg"/> class.
 /// </summary>
 /// <param name="list">The list of categories used to populate the tree</param>
 /// <param name="initiallySelectedHvos">The sequence of HVOs of initially selected
 /// categories.</param>
 /// <param name="helpProvider">The help provider.</param>
 /// <param name="projSettingsKey">The project settings key.</param>
 /// ------------------------------------------------------------------------------------
 public CategoryChooserDlg(ICmPossibilityList list, int[] initiallySelectedHvos,
                           IHelpTopicProvider helpProvider, IProjectSpecificSettingsKeyProvider projSettingsKey) :
     base(list, initiallySelectedHvos, helpProvider, null, projSettingsKey)
 {
     lblInfo.Text = Properties.Resources.kstidCategoryChooserDlgInfoText;
 }
Ejemplo n.º 5
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="CategoryChooserDlg"/> class.
		/// </summary>
		/// <param name="list">The list of categories used to populate the tree</param>
		/// <param name="initiallySelectedHvos">The sequence of HVOs of initially selected
		/// categories.</param>
		/// <param name="helpProvider">The help provider.</param>
		/// <param name="projSettingsKey">The project settings key.</param>
		/// ------------------------------------------------------------------------------------
		public CategoryChooserDlg(ICmPossibilityList list, int[] initiallySelectedHvos,
			IHelpTopicProvider helpProvider, IProjectSpecificSettingsKeyProvider projSettingsKey) :
			base(list, initiallySelectedHvos, helpProvider, null, projSettingsKey)
		{
			lblInfo.Text = Properties.Resources.kstidCategoryChooserDlgInfoText;
		}