Ejemplo n.º 1
0
        private void frmGen_Load(object sender, EventArgs e)
        {
            SimpleBlockBroker broker = new SimpleBlockBroker();
            RepositoryOptions ro     = new RepositoryOptions();

            ro.Folder = blocksFolder;

            broker.SetupBroker(ro);

            foreach (BlockHandle bh in broker.Blocks)
            {
                cboClass.Items.Add(bh.ClassName);
            }
        }
Ejemplo n.º 2
0
        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();
        }