Exemple #1
0
        private void elementContainerControl1_SelectedIndexChanged(object sender, Controls.ElementEventArgs e)
        {
            formulaControl1.Clear();

            if (elementContainerControl1.SelectedIndex != -1)
            {
                textBoxX_formulaName.Text     = elementContainerControl1.GetText(elementContainerControl1.SelectedIndex);
                panelExAddNew.Enabled         = true;
                textBoxX_formulaName.ReadOnly = false;

                for (int index = 0; index < _formulas[elementContainerControl1.SelectedIndex].Elements.Count; index++)
                {
                    var item = _formulas[elementContainerControl1.SelectedIndex].Elements[index];
                    formulaControl1.AddElement(item.Value, item.Type,
                                               index ==
                                               _formulas[elementContainerControl1.SelectedIndex].Elements.Count - 1);
                }
            }
            else
            {
                textBoxX_formulaName.Text     = "";
                panelExAddNew.Enabled         = false;
                textBoxX_formulaName.ReadOnly = true;
            }
        }
Exemple #2
0
        private void elementContainerControl1_SelectedIndexChanged(object sender, Controls.ElementEventArgs e)
        {
            if (elementContainerControl1.SelectedIndex != -1)
            {
                textBoxX_jobName.Text     = elementContainerControl1.GetText(elementContainerControl1.SelectedIndex);
                panelExAddNew.Enabled     = true;
                textBoxX_jobName.ReadOnly = false;
                var index = e.Index;

                _stopUpdate                      = true;
                textBoxX_jobName.Text            = _schedulas[index].Name;
                checkBoxX_repeatDaily.CheckValue = _schedulas[index].IsDaily;
                dateTimeInputTime.Value          = _schedulas[index].Date;
                SetCheckedDays(_schedulas[index].SelectedDays);
                _stopUpdate = false;
            }
            else
            {
                panelExAddNew.Enabled     = false;
                textBoxX_jobName.ReadOnly = true;
                textBoxX_jobName.Text     = "";
            }
        }
Exemple #3
0
 private void elementContainerControl1_SelectedIndexChanged(object sender, Controls.ElementEventArgs e)
 {
     textBoxX_formulaName.Text = _alllExistingF[elementContainerControl1.SelectedIndex].Formula;
 }