コード例 #1
0
ファイル: ConcorderControl.cs プロジェクト: sillsdev/WorldPad
        /// <summary>
        /// This is the secondary combo box. When an item is selected,
        /// we can determine what to show in the control below
        /// the secondary combo box.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void m_cbUsedBy_SelectedIndexChanged(object sender, EventArgs e)
        {
            Cursor oldState = FindForm().Cursor;

            FindForm().Cursor = Cursors.WaitCursor;
            UsedByFiller ubf = m_cbUsedBy.SelectedItem as UsedByFiller;

            ubf.LoadList(m_splitContainer.Panel2, m_selectedFinder);
            FindForm().Cursor = oldState;
        }
コード例 #2
0
ファイル: ConcorderControl.cs プロジェクト: sillsdev/WorldPad
            /// <summary>
            ///
            /// </summary>
            /// <param name="mediator"></param>
            /// <param name="configurationParameters"></param>
            public virtual void Init(Mediator mediator, XmlNode configurationParameters)
            {
                m_mediator          = mediator;
                m_configurationNode = configurationParameters;
                m_label             = m_configurationNode.Attributes["label"].Value;

                // Add a UsedByFiller for each control node in the targetcontrols element.
                foreach (XmlNode targetControlNode in configurationParameters.SelectNodes("targetcontrols/control"))
                {
                    UsedByFiller ubf = new UsedByFiller();
                    m_ubfList.Add(ubf);
                    ubf.Init(mediator, targetControlNode);
                }
            }
コード例 #3
0
ファイル: ConcorderControl.cs プロジェクト: sillsdev/WorldPad
			/// <summary>
			///
			/// </summary>
			/// <param name="mediator"></param>
			/// <param name="configurationParameters"></param>
			public virtual void Init(Mediator mediator, XmlNode configurationParameters)
			{
				m_mediator = mediator;
				m_configurationNode = configurationParameters;
				m_label = m_configurationNode.Attributes["label"].Value;

				// Add a UsedByFiller for each control node in the targetcontrols element.
				foreach (XmlNode targetControlNode in configurationParameters.SelectNodes("targetcontrols/control"))
				{
					UsedByFiller ubf = new UsedByFiller();
					m_ubfList.Add(ubf);
					ubf.Init(mediator, targetControlNode);
				}
			}