Exemplo n.º 1
0
 public void SetElement(ParamElementC element)
 {
     Element = element;
     PopulateData();
     EnableButtons();
     EnableControls();
 }
Exemplo n.º 2
0
 public void SetElement(ParamElementC element)
 {
     Element = element;
     PopulateData();
     EnableButtons();
     EnableControls();
 }
Exemplo 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;
 }
Exemplo 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;
        }
Exemplo 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;
     }
 }
Exemplo n.º 6
0
 public ParamElementUC()
 {
     InitializeComponent();
     Element = null;
 }
Exemplo n.º 7
0
 public ParamElementUC()
 {
     InitializeComponent();
     Element = null;
 }