示例#1
0
        public static IEnumerable <FakeControl> GetFakeControls(FakeControl _container)
        {
            List <FakeControl>    cl          = new List <FakeControl>();
            IFakeControlContainer fccontainer = _container as IFakeControlContainer;

            cl.Add(_container);
            if (fccontainer != null)
            {
                foreach (FakeControl c in fccontainer.Controls)
                {
                    cl.AddRange(GetFakeControls(c));
                }
            }
            return(cl);
        }
 public FakeControlEventArgs(FakeControl control) : base()
 {
     this._control = control;
 }