private void loadValues()
        {
            string strRoutineName = "loadValues";

            try
            {
                DD dd = ddList.ElementAt(editIndex);
                if (dd != null)
                {
                    ucdd.txtDDIndex.Text = dd.DDIndex;
                    ucdd.txtDINo1.Text   = dd.DINo1;
                    ucdd.txtDINo2.Text   = dd.DINo2;
                    //Ajay: 17/11/2018
                    ucdd.txtDINo3.Text  = dd.DINo3;
                    ucdd.txtDINo4.Text  = dd.DINo4;
                    ucdd.txtDINo5.Text  = dd.DINo5;
                    ucdd.txtDINo6.Text  = dd.DINo6;
                    ucdd.txtDINo7.Text  = dd.DINo7;
                    ucdd.txtDINo8.Text  = dd.DINo8;
                    ucdd.txtDINo9.Text  = dd.DINo9;
                    ucdd.txtDINo10.Text = dd.DINo10;

                    ucdd.cmbOperation.SelectedIndex = ucdd.cmbOperation.FindStringExact(dd.Operation);
                    ucdd.txtDelayMS.Text            = dd.DelayMS;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 2
0
        private void fillOptions()
        {
            string strRoutineName = "fillOptions";

            try
            {
                //Fill Operation...
                ucdd.cmbOperation.Items.Clear();
                foreach (String op in DD.getOperations())
                {
                    ucdd.cmbOperation.Items.Add(op.ToString());
                }
                ucdd.cmbOperation.SelectedIndex = 0;
            }
            catch (Exception ex)
            {
                MessageBox.Show(strRoutineName + ": " + "Error: " + ex.Message.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }