Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
 private void DataGridView_SelectionChanged(object sender, EventArgs e)
 {
     if (VS.DataGridView.CurrentCell != null && !changing)
     {
         changing = true;
         CTLM.ClearValues();
         VS.DataGridView.Rows[VS.DataGridView.CurrentCell?.RowIndex ?? 0].Selected = true;
         CTLM.SetStatus(CommonTools.EnumStatus.SEARCH);
         txtTypeCode.Text = VS.CurrentRow.Cells[0].Value.ToString();
         txtSection.Text  = VS.CurrentRow.Cells[1].Value.ToString();
         txtTitle.Text    = VS.CurrentRow.Cells[2].Value.ToString();
         CTLM.Button_Click(CTLMButtonsEnum.btnOk);
         changing = false;
     }
 }