Beispiel #1
0
        public override void Setup()
        {
            TestUtils.InitGEDCOMProviderTest();
            WFAppHost.ConfigureBootstrap(false);

            fBase = new BaseWindowStub();

            fDialog = new LanguageEditDlg();
            fDialog.Show();
        }
        private void btnLangEdit_Click(object sender, EventArgs e)
        {
            using (var dlg = new LanguageEditDlg()) {
                dlg.LanguageID = fBase.Context.Tree.Header.Language.Value;

                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    // Assignment in control, instead of the header's property to work Cancel.
                    txtLanguage.Text = GEDCOMLanguageEnum.Instance.GetStrValue(dlg.LanguageID);
                }
            }
        }