Example #1
0
 public DlgSessionVariable()
 {
     InitializeComponent();
     _types = WebClientData.GetJavascriptTypes();
     foreach (string s in _types.Keys)
     {
         listBox1.Items.Add(s);
     }
 }
        void _button_Click(object sender, EventArgs e)
        {
            ContextMenu cm = new ContextMenu();
            Dictionary <string, Type> jsTypes = WebClientData.GetJavascriptTypes();

            foreach (KeyValuePair <string, Type> kv in jsTypes)
            {
                Image img             = VPLUtil.GetTypeIcon(kv.Value);
                MenuItemWithBitmap mi = new MenuItemWithBitmap(kv.Key, mi_click, img);
                mi.Tag = kv.Value;
                cm.MenuItems.Add(mi);
            }
            cm.Show(dataGridView1, _button.Location);
        }
Example #3
0
    private static void addWebBuilderTypes()
    {
        XmlUtil.AddKnownType("LimnorWebApp", typeof(LimnorWebApp));
        XmlUtil.AddKnownType("LimnorWebAppPhp", typeof(LimnorWebAppPhp));
        XmlUtil.AddKnownType("SendMail", typeof(SendMail));
        XmlUtil.AddKnownType("ServerFile", typeof(ServerFile));
        XmlUtil.AddKnownType("PhpComponent", typeof(PhpComponent));
        //
        XmlUtil.AddKnownType("PhpString", typeof(PhpString));
        XmlUtil.AddKnownType("PhpArray", typeof(PhpArray));
        //
        XmlUtil.AddKnownType("WebDataEditor", typeof(WebDataEditor));
        XmlUtil.AddKnownType("WebDataEditorDatetime", typeof(WebDataEditorDatetime));
        XmlUtil.AddKnownType("WebDataEditorLookup", typeof(WebDataEditorLookup));
        XmlUtil.AddKnownType("WebDataEditorNone", typeof(WebDataEditorNone));
        //
        Dictionary <string, Type> types = WebClientData.GetJavascriptTypes();

        foreach (Type t in types.Values)
        {
            XmlUtil.AddKnownType(t.Name, t);
        }
    }