private IEnumerable <WsComboItem> GetWsComboItems(InterlinLineSpec curSpec) { using (var dummyCombobox = new ComboBox()) { var dummyCachedBoxes = new Dictionary <ColumnConfigureDialog.WsComboContent, ComboBox.ObjectCollection>(); var comboObjects = ConfigureInterlinDialog.WsComboItemsInternal( Cache, dummyCombobox, dummyCachedBoxes, curSpec.ComboContent); var choices = new WsComboItem[comboObjects.Count]; comboObjects.CopyTo(choices, 0); return(choices); } }
/// <summary> /// Launch the Configure interlinear dialog and deal with the results /// </summary> /// <param name="argument"></param> public bool OnConfigureInterlinear(object argument) { using (var dlg = new ConfigureInterlinDialog(m_cache, m_propertyTable.GetValue <IHelpTopicProvider>("HelpTopicProvider"), m_vc.LineChoices.Clone() as InterlinLineChoices)) { if (dlg.ShowDialog(this) == DialogResult.OK) { UpdateForNewLineChoices(dlg.Choices); } return(true); // We handled this } }
/// <summary> /// Launch the Configure interlinear dialog and deal with the results /// </summary> /// <param name="argument"></param> public bool OnConfigureInterlinear(object argument) { using (var dlg = new ConfigureInterlinDialog(m_fdoCache, m_mediator.HelpTopicProvider, m_vc.LineChoices.Clone() as InterlinLineChoices)) { if (dlg.ShowDialog(this) == DialogResult.OK) { UpdateForNewLineChoices(dlg.Choices); } return(true); // We handled this } }
/// <summary> /// Launch the Configure interlinear dialog and deal with the results /// </summary> /// <param name="argument"></param> public bool OnConfigureInterlinear(object argument) { using (var dlg = new ConfigureInterlinDialog(m_fdoCache, m_mediator.HelpTopicProvider, m_vc.LineChoices.Clone() as InterlinLineChoices)) { if (dlg.ShowDialog(this) == DialogResult.OK) { UpdateForNewLineChoices(dlg.Choices); } return true; // We handled this } }
/// <summary> /// Launch the Configure interlinear dialog and deal with the results /// </summary> /// <param name="argument"></param> public bool OnConfigureInterlinear(object argument) { ConfigureInterlinDialog dlg = new ConfigureInterlinDialog(m_fdoCache, m_vc.LineChoices.Clone() as InterlinLineChoices); if (dlg.ShowDialog(this) == DialogResult.OK) { UpdateForNewLineChoices(dlg.Choices); } return true; // We handled this }