public override void PluginMenuClicked(object Sender, MenuEventArgs e) { switch (e.Key) { case "mnuItem1": var formToLoad1 = new FormFactory.PortalIntegration(); CssContext.Instance.Host.Register(formToLoad1); break; case "mnuItem2": var formToLoad3 = new FormFactory.ClientList(Guid.NewGuid()); CssContext.Instance.Host.Register(formToLoad3); break; case "mnuDataAPI": var formToLoad2 = new FormFactory.DataAPI(); CssContext.Instance.Host.Register(formToLoad2); break; } }
public frmDataAPI(DataAPI factory) { InitializeComponent(); }