protected override IBOColSelectorControl CreateSelector() { IReadOnlyGridControl readOnlyGridControl = GetControlFactory().CreateReadOnlyGridControl(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)readOnlyGridControl); return GetControlledLifetimeFor(readOnlyGridControl); }
protected override IBOColSelectorControl CreateSelector() { IEditableGridControl editableGridControl = GetControlledLifetimeFor(GetControlFactory().CreateEditableGridControl()); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)editableGridControl); return GetControlledLifetimeFor(editableGridControl); }
protected override void AddControlToForm(IControlHabanero control, int formHeight) { Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)control); frm.Height = formHeight; frm.Visible = true; }
protected override IEditableGrid CreateEditableGrid() { EditableGridVWG editableGridVWG = new EditableGridVWG(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(editableGridVWG); return GetControlledLifetimeFor(editableGridVWG); }
protected override IGridBase CreateGridBaseStub() { GridBaseVWGStub gridBase = new GridBaseVWGStub(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(gridBase); return GetControlledLifetimeFor(gridBase); }
protected override IBOColSelectorControl CreateSelector() { TestGridBaseVWG.GridBaseVWGStub gridBase = new TestGridBaseVWG.GridBaseVWGStub(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(gridBase); SetupGridColumnsForMyBo(gridBase); return(GetControlledLifetimeFor(gridBase)); }
protected override IBOColSelectorControl CreateSelector() { IEditableGridControl gridControl = GetControlFactory().CreateEditableGridControl(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)gridControl); return(GetControlledLifetimeFor(gridControl)); }
protected override IBOColSelectorControl CreateSelector() { IReadOnlyGridControl readOnlyGridControl = GetControlFactory().CreateReadOnlyGridControl(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)readOnlyGridControl); return(GetControlledLifetimeFor(readOnlyGridControl)); }
protected override IEditableGrid CreateEditableGrid() { EditableGridVWG editableGridVWG = new EditableGridVWG(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(editableGridVWG); return(GetControlledLifetimeFor(editableGridVWG)); }
protected override IGridBase CreateGridBaseStub() { GridBaseVWGStub gridBase = new GridBaseVWGStub(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(gridBase); return(GetControlledLifetimeFor(gridBase)); }
protected override IBOColSelectorControl CreateSelector() { TestGridBaseVWG.GridBaseVWGStub gridBase = new TestGridBaseVWG.GridBaseVWGStub(); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(gridBase); SetupGridColumnsForMyBo(gridBase); return GetControlledLifetimeFor(gridBase); }
protected override IReadOnlyGridControl CreateReadOnlyGridControl(bool putOnForm) { //ALWAYS PUT ON FORM FOR GIZ ReadOnlyGridControlVWGStub readOnlyGridControlVWG = new ReadOnlyGridControlVWGStub(GetControlFactory()); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(readOnlyGridControlVWG); return GetControlledLifetimeFor(readOnlyGridControlVWG); }
protected override IReadOnlyGridControl CreateReadOnlyGridControl(bool putOnForm) { //ALWAYS PUT ON FORM FOR GIZ ReadOnlyGridControlVWGStub readOnlyGridControlVWG = new ReadOnlyGridControlVWGStub(GetControlFactory()); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add(readOnlyGridControlVWG); return(GetControlledLifetimeFor(readOnlyGridControlVWG)); }
public void Test_SetDefaultButton() { //---------------Set up test pack------------------- IButtonGroupControl buttons = CreateButtonGroupControl(); buttons.AddButton("Test"); Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)buttons); //---------------Execute Test ---------------------- buttons.SetDefaultButton("Test"); //---------------Test Result ----------------------- Assert.AreSame(null, frm.AcceptButton); //Assert.AreSame(btn, frm.AcceptButton); }
protected override IFormHabanero AddControlToForm(IGridBase gridBase) { Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)gridBase); return null; }
protected override void AddControlToForm(IControlHabanero cntrl) { Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)cntrl); }
protected override IFormHabanero AddControlToForm(IGridBase gridBase) { Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)gridBase); return(null); }
protected override void AddControlToForm(IGridBase gridBase) { Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)gridBase); }
protected override void AddToForm(IDataGridView dgv) { Gizmox.WebGUI.Forms.Form form = new Gizmox.WebGUI.Forms.Form(); form.Controls.Add((Gizmox.WebGUI.Forms.Control)dgv); }
protected override bool IsMenuDocked(IMainMenuHabanero menu, IFormHabanero form) { Gizmox.WebGUI.Forms.Form formWin = (Gizmox.WebGUI.Forms.Form)form; return(formWin.Menu == menu && form.Controls.Count == 1); }