private void LstFiles_SelectedIndexChanged(object sender, EventArgs e) { if (LstFiles.Enabled == true) { YMLText = YMLTools.ReadFile(LstFiles.Text); LoadtoDataGrid(); if (OldVersionDict.Count > 0) { ComBLoad(); } } }
private void BtnMergeAll_Click(object sender, EventArgs e) { var result = MessageBox.Show("Merge All Files ?", "Merge All", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { LstFiles.Enabled = false; for (int i = 0; i < LstFiles.Items.Count; i++) { LstFiles.SelectedIndex = i; YMLText = YMLTools.ReadFile(LstFiles.Text); List <string> lstWriteback = MakeWriteBackList(); WriteEngFile(lstWriteback); } LstFiles.Enabled = true; } }