private void btnBuild_Click(object sender, EventArgs e) { if (!IsCldrPath(tbxCldrPath.Text)) { MessageBox.Show("The CLDR path does not contain any CLDR files"); } else if (!Directory.Exists(tbxNCldrPath.Text)) { MessageBox.Show("The NCLDR output path does not exist"); } else { previousSection = null; INCldrFileDataSource ncldrFileDataSource = this.GetNewNCldrDataSource(); ncldrFileDataSource.NCldrDataPath = tbxNCldrPath.Text; if (!ncldrFileDataSource.Exists() || MessageBox.Show("The NCLDR data file exists - overwrite it ?", "NCLDR Builder", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { tbxProgress.Text = String.Empty; NCldrBuilder.Build( tbxCldrPath.Text, ncldrFileDataSource, new NCldrBuilderProgressEventHandler(Progress), this.options); Progress("Done."); } } }