protected override IFormHabanero AddControlToForm(IControlHabanero cntrl) { FormVWG form = (FormVWG)GetControlFactory().CreateForm(); Form formVWG = form; formVWG.Controls.Add((Control)cntrl); return(GetControlledLifetimeFor(form)); }
public void TestDialogResultVWG_OK() { //---------------Set up test pack------------------- FormVWG formVWG = new FormVWG(); DisposeOnTearDown(formVWG); //---------------Execute Test ---------------------- formVWG.DialogResult = Habanero.Faces.Base.DialogResult.OK; //---------------Test Result ----------------------- Assert.AreEqual((int)Gizmox.WebGUI.Forms.DialogResult.OK, (int)formVWG.DialogResult); Assert.AreEqual(Habanero.Faces.Base.DialogResult.OK.ToString(), formVWG.DialogResult.ToString()); //---------------Tear Down ------------------------- }