public void OpenForm(string xmlFile) { IBlockWeb bw = XMLLoader.LoadBlockWeb(xmlFile, "a", blockWeb.Broker); string formId = bw.GetConnector("FormId").GetValue <string>(); Form frm = bw[formId].ProcessRequest("GetUIElement") as Form; frm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { RuntimeBlockBroker broker = initBroker(); IBlockWeb bw = XMLLoader.LoadBlockWeb("blockWeb-copy.xml", "a", broker, null); string formId = bw.GetConnector("FormId").GetValue <string>(); System.Windows.Forms.Form frm = bw[formId].ProcessRequest("GetUIElement") as System.Windows.Forms.Form; frm.ShowDialog(); }
private void button2_Click_1(object sender, EventArgs e) { SimpleBlockBroker broker = new SimpleBlockBroker(); RepositoryOptions ro = new RepositoryOptions(); ro.Folder = txtBlocksFolder.Text; broker.SetupBroker(ro); IBlockWeb bw = XMLLoader.LoadBlockWeb(txtFormFile.Text, txtBWID.Text, broker, null); string formId = bw.GetConnector("FormId").GetValue <string>(); System.Windows.Forms.Form frm = bw[formId].ProcessRequest("GetUIElement") as System.Windows.Forms.Form; frm.ShowDialog(); }