public GUIContainer(IWizardControl nextpage, Library.Interface.IGUIControl @interface) : this() { m_autoFillValues = false; m_interface = @interface; m_nextpage = nextpage; base.PageEnter += new PageChangeHandler(GUIContainer_PageEnter); base.PageLeave += new PageChangeHandler(GUIContainer_PageLeave); }
public GUIContainer(IWizardControl nextpage, Library.Interface.IGUIControl @interface) : this() { m_autoFillValues = false; m_interface = @interface; m_nextpage = nextpage; base.PageEnter += new PageChangeHandler(GUIContainer_PageEnter); base.PageLeave += new PageChangeHandler(GUIContainer_PageLeave); }
/// <summary> /// The backend control was entered, probably user selected a backend /// </summary> void BackendRadioButtonClicked(object sender, EventArgs e) { if (!((RadioButton)sender).Checked) return; // Find the checked radio button and assign the GUI from the tag GuiControl = ((RadioButton)sender).Tag as Library.Interface.IGUIControl; // Show the new user interface GuiInterface = GuiControl.GetControl(new Dictionary<string, string>(), Row.GuiOptions); GuiInterface.SetBounds(0, 0, this.UIFPanel.Width, this.UIFPanel.Height); GuiInterface.Visible = true; this.UIFPanel.Controls.Clear(); this.UIFPanel.Controls.Add(GuiInterface); }