/// <summary> /// Show a dialog to allow the user to select/unselect multiple writing systems /// at a time, whether or not to display them (if they don't have data) /// If they do have data, we show the fields anyhow. /// </summary> /// <param name="args"></param> /// <returns></returns> public bool OnDataTreeWritingSystemsConfigureDlg(object args) { CheckDisposed(); ReloadWssToDisplayForPart(); using (var dlg = new ConfigureWritingSystemsDlg(WritingSystemOptionsForDisplay, WritingSystemsSelectedForDisplay, m_mediator.HelpTopicProvider)) { dlg.Text = String.Format(DetailControlsStrings.ksSliceConfigureWssDlgTitle, Label); if (dlg.ShowDialog() == DialogResult.OK) { PersistAndRedisplayWssToDisplayForPart(dlg.SelectedWritingSystems); } } return(true); }
/// <summary> /// Show a dialog to allow the user to select/unselect multiple writing systems /// at a time, whether or not to display them (if they don't have data) /// If they do have data, we show the fields anyhow. /// </summary> /// <param name="args"></param> /// <returns></returns> public bool OnDataTreeWritingSystemsConfigureDlg(object args) { CheckDisposed(); ReloadWssToDisplayForPart(); using (var dlg = new ConfigureWritingSystemsDlg(WritingSystemOptionsForDisplay, WritingSystemsSelectedForDisplay, m_mediator.HelpTopicProvider)) { dlg.Text = String.Format(DetailControlsStrings.ksSliceConfigureWssDlgTitle, Label); if (dlg.ShowDialog() == DialogResult.OK) PersistAndRedisplayWssToDisplayForPart(dlg.SelectedWritingSystems); } return true; }