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

PressOk() private method

Presses the OK button.
private PressOk ( ) : void
return void
		internal void PressOk()
		{
			CheckDisposed();

			if (!CheckOkToChangeContext())
				return;

			SaveChanges();

			m_fHasClosed = true;
			DialogResult = DialogResult.OK;
		}

Usage Example

 public void General_LanguageNameChange()
 {
     m_dlg.ShowDialog(m_wsKalaba);
     m_dlg.LanguageNameTextBox.Text = "Kalab";
     m_dlg.VerifyListBox(new[] { "Kalab", "Kalab (International Phonetic Alphabet)" });
     m_dlg.VerifyLoadedForListBoxSelection("Kalab");
     m_dlg.PressOk();
     Assert.AreEqual(DialogResult.OK, m_dlg.DialogResult);
     Assert.AreEqual(true, m_dlg.IsChanged);
     VerifyWsNames(
         new[] { m_wsKalaba.Handle, m_wsKalabaIpa.Handle },
         new[] { "Kalab", "Kalab (International Phonetic Alphabet)" },
         new[] { "qaa-x-kal", "qaa-fonipa-x-kal" });
 }
All Usage Examples Of SIL.FieldWorks.FwCoreDlgs.DummyWritingSystemPropertiesDialog::PressOk