SetChildControlsCreated() 공개 메소드

public SetChildControlsCreated ( bool value ) : void
value bool
리턴 void
예제 #1
0
        public void ChildControlsCreated()
        {
            ChildControlsCreatedControl ctr = new ChildControlsCreatedControl();

            ctr.Controls.Add(new Control());
            //ctr.DoEnsureChildControls ();

            Assert.AreEqual(1, ctr.Controls.Count, "ChildControlsCreated#1");
            ctr.SetChildControlsCreated(false);
            Assert.AreEqual(1, ctr.Controls.Count, "ChildControlsCreated#2");
        }
예제 #2
0
		public void ChildControlsCreated () {
			ChildControlsCreatedControl ctr = new ChildControlsCreatedControl ();
			ctr.Controls.Add (new Control ());
			//ctr.DoEnsureChildControls ();

			Assert.AreEqual (1, ctr.Controls.Count, "ChildControlsCreated#1");
			ctr.SetChildControlsCreated (false);
			Assert.AreEqual (1, ctr.Controls.Count, "ChildControlsCreated#2");
		}