Esempio n. 1
0
 public void SetElement(ParamElementC element)
 {
     Element = element;
     PopulateData();
     EnableButtons();
     EnableControls();
 }
Esempio n. 2
0
 public void SetElement(ParamElementC element)
 {
     Element = element;
     PopulateData();
     EnableButtons();
     EnableControls();
 }
Esempio n. 3
0
 private void btn_addparam_Click(object sender, EventArgs e)
 {
     ParamElementC param = new ParamElementC();
     param.ElementName = "param";
     param.ElementValue = "tbd";
     param.AttributeType = ContextC.Instance.GetParamTypes()[0];
     param.Text = param.ElementName + " - " + param.ElementValue;
     element.children.Add(param);
     element.Nodes.Add(param);
     MyTreeViewControlC.AddElement(param);
     element = null;
 }
Esempio n. 4
0
        private void btn_addparam_Click(object sender, EventArgs e)
        {
            ParamElementC param = new ParamElementC();

            param.ElementName   = "param";
            param.ElementValue  = "tbd";
            param.AttributeType = ContextC.Instance.GetParamTypes()[0];
            param.Text          = param.ElementName + " - " + param.ElementValue;
            element.children.Add(param);
            element.Nodes.Add(param);
            MyTreeViewControlC.AddElement(param);
            element = null;
        }
Esempio n. 5
0
 private void cbx_classkey_CheckedChanged(object sender, EventArgs e)
 {
     if (true == cbx_classkey.Checked)
     {
         ElementC parent = (ElementC)Element.Parent;
         foreach (ElementC child in parent.children)
         {
             ParamElementC cast = (ParamElementC)child;
             if (null != cast.ClassKeyType && "yes" == cast.ClassKeyType && Element.ElementValue != cast.ElementValue)
             {
                 cast.ClassKeyType = null;
                 MyLoggerC.Log("Moved classkey from parameter \"" + cast.ElementValue + "\" to parameter \"" + Element.ElementValue + "\"." + Environment.NewLine);
             }
         }
         Element.ClassKeyType = "yes";
         cbx_classkey.Enabled = false;
     }
     else
     {
         Element.ClassKeyType = null;
     }
 }
Esempio n. 6
0
 public ParamElementUC()
 {
     InitializeComponent();
     Element = null;
 }
Esempio n. 7
0
 public ParamElementUC()
 {
     InitializeComponent();
     Element = null;
 }