private void btnReloadVersions_Click(object sender, EventArgs e) { CTLM.ClearValues(); txtNetVersion.Text = ""; CTLM.SetStatus(EnumStatus.SEARCH); CTLM.Button_Click("btnOk"); Application.DoEvents(); while (!CTLM.EOF) { CTLM.ShowRSValues(); Application.DoEvents(); if (txtVersion.Text != txtNetVersion.Text) { int i = CTLM.RSPosition; CTLM.SetStatus(EnumStatus.EDIT); txtVersion.Text = txtNetVersion.Text; CTLM.Button_Click("btnOk"); Application.DoEvents(); CTLM.ClearValues(); txtNetVersion.Text = ""; CTLM.SetStatus(EnumStatus.SEARCH); CTLM.Button_Click("btnOk"); Application.DoEvents(); CTLM.setRSPosition(i); } txtNetVersion.Text = ""; CTLM.Button_Click("btnNext"); } }