The configure writing systems dialog that is used by MultiStringSlice.
Inheritance: System.Windows.Forms.Form
コード例 #1
0
        /// <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);
        }
コード例 #2
0
		/// <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;
		}