Beispiel #1
0
 /// <summary>
 /// Function to fill controls to update
 /// </summary>
 public void FillControls()
 {
     try
     {
         CounterInfo infoCounter = new CounterInfo();
         CounterSP   spCounter   = new CounterSP();
         infoCounter         = spCounter.CounterWithNarrationView(Convert.ToDecimal(dgvCounter.CurrentRow.Cells[1].Value.ToString()));
         txtCounterName.Text = infoCounter.CounterName;
         txtNarration.Text   = infoCounter.Narration;
         btnSave.Text        = "Update";
         btnDelete.Enabled   = true;
         decCounterId        = infoCounter.CounterId;
         strCounterName      = infoCounter.CounterName;
     }
     catch (Exception ex)
     {
         MessageBox.Show("CT8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Function to fill controls to update
 /// </summary>
 public void FillControls()
 {
     try
     {
         CounterInfo infoCounter = new CounterInfo();
         CounterSP   spCounter   = new CounterSP();
         infoCounter         = spCounter.CounterWithNarrationView(Convert.ToDecimal(dgvCounter.CurrentRow.Cells[1].Value.ToString()));
         txtCounterName.Text = infoCounter.CounterName;
         txtNarration.Text   = infoCounter.Narration;
         btnSave.Text        = "Update";
         btnDelete.Enabled   = true;
         decCounterId        = infoCounter.CounterId;
         strCounterName      = infoCounter.CounterName;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "CT8" + ex.Message;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Function to fill controls to update
 /// </summary>
 public void FillControls()
 {
     try
     {
         CounterInfo infoCounter = new CounterInfo();
         CounterSP spCounter = new CounterSP();
         infoCounter = spCounter.CounterWithNarrationView(Convert.ToDecimal(dgvCounter.CurrentRow.Cells[1].Value.ToString()));
         txtCounterName.Text = infoCounter.CounterName;
         txtNarration.Text = infoCounter.Narration;
         btnSave.Text = "Update";
         btnDelete.Enabled = true;
         decCounterId = infoCounter.CounterId;
         strCounterName = infoCounter.CounterName;
     }
     catch (Exception ex)
     {
         MessageBox.Show("CT8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }