/// <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; }
/// <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); } }