SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog.ShowDialog C# (CSharp) Method

ShowDialog() public method

sets up the dialog without actually showing it.
public ShowDialog ( IWritingSystem ws ) : int
ws IWritingSystem The writing system which properties will be displayed
return int
		public int ShowDialog(IWritingSystem ws)
		{
			CheckDisposed();

			SetupDialog(ws, true);
			SwitchTab(kWsSorting); // force setup of the Sorting tab
			return (int)DialogResult.OK;
		}

Usage Example

 public void WsListContent()
 {
     // Setup dialog to show Kalaba (xkal) related wss.
     m_dlg.ShowDialog(m_wsKalaba);
     m_dlg.VerifyListBox(new[] { "Kalaba", "Kalaba (International Phonetic Alphabet)" });
     m_dlg.VerifyRelatedWritingSystem("kal");
     m_dlg.VerifyLoadedForListBoxSelection("Kalaba");
     // Select Kalaba (IPA) and verify dialog is setup for that one.
     m_dlg.WsList.SelectedItem = m_dlg.WsList.Items.Cast <IWritingSystem>().Single(ws => ws.DisplayLabel == "Kalaba (International Phonetic Alphabet)");
     m_dlg.VerifyLoadedForListBoxSelection("Kalaba (International Phonetic Alphabet)");
 }
All Usage Examples Of SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog::ShowDialog