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

PressCancel() private method

Presses the Cancel button.
private PressCancel ( ) : void
return void
		internal void PressCancel()
		{
			CheckDisposed();
			m_fHasClosed = true;
			DialogResult = DialogResult.Cancel;
		}

Usage Example

Ejemplo n.º 1
0
 public void General_EthnologueCodeChanged_ModifyWsId_Cancel()
 {
     m_dlg.ShowDialog(m_wsKalaba);
     // change to nonconflicting ethnologue code
     m_dlg.SelectEthnologueCodeDlg("Silly", "qaa-x-xxx", "", DialogResult.OK,
                                   new DummyWritingSystemPropertiesDialog.ShowMsgBoxStatus[] { },
                                   new string[] { },
                                   new DialogResult[] { });
     m_dlg.VerifyListBox(new[] { "Silly", "Silly (International Phonetic Alphabet)" });
     m_dlg.VerifyRelatedWritingSystem("xxx");
     m_dlg.VerifyLoadedForListBoxSelection("Silly");
     m_dlg.PressCancel();
     Assert.AreEqual(false, m_dlg.IsChanged);
     VerifyWsNames(
         new[] { m_wsKalaba.Handle, m_wsKalabaIpa.Handle },
         new[] { "Kalaba", "Kalaba (International Phonetic Alphabet)" },
         new[] { "qaa-x-kal", "qaa-fonipa-x-kal" });
 }