示例#1
0
 public void UIUpdate(object data, object arguments, eUpdateVisibilty visiblity, ref List <Control> owners)
 {
     foreach (Control c in mControls)//this.Controls)
     {
         ITriggerUIUpdate ui = c as ITriggerUIUpdate;
         if (ui != null)
         {
             ui.UIUpdate(data, arguments, visiblity, ref owners);
         }
     }
 }
示例#2
0
        public void UIUpdate(object data, object arguments, eUpdateVisibilty visiblity, ref List <Control> owners)
        {
            TriggerValue trigerValue = data as TriggerValue;

            if (trigerValue != null)
            {
                foreach (Control c in VarInHardPointsBar.GetLogicalControls())
                {
                    ITriggerUIUpdate ui = c as ITriggerUIUpdate;
                    if (ui != null)
                    {
                        ui.UIUpdate(data, arguments, visiblity, ref owners);
                    }
                }
                foreach (Control c in VarOutHardPointsBar.GetLogicalControls())
                {
                    ITriggerUIUpdate ui = c as ITriggerUIUpdate;
                    if (ui != null)
                    {
                        ui.UIUpdate(data, arguments, visiblity, ref owners);
                    }
                }
            }


            BasicArgument ba = arguments as BasicArgument;

            if (data == null)
            {
            }
            else if ((data == this.TriggerTemplateMapping) && (ba != null))
            {
                if (ba.mArgument == BasicArgument.eArgumentType.Search)
                {
                    owners.Add(this);
                }
            }

            //throw new Exception("The method or operation is not implemented.");
        }
示例#3
0
        public void UIUpdate(object data, object arguments, eUpdateVisibilty visiblity, ref List <Control> owners)
        {
            foreach (Control c in flowLayoutPanel1.Controls)
            {
                ITriggerUIUpdate ui = c as ITriggerUIUpdate;
                if (ui != null)
                {
                    ui.UIUpdate(data, arguments, visiblity, ref owners);
                }
            }

            BasicArgument ba = arguments as BasicArgument;

            if (data == null)
            {
            }
            else if (data is TriggerComponent && (((TriggerComponent)data).ID == ((TriggerComponent)this.Tag).ID) && (ba != null))
            {
                if (ba.mArgument == BasicArgument.eArgumentType.Search)
                {
                    owners.Add(this);
                }
            }
        }