Example #1
0
 public DlgSessionVariable()
 {
     InitializeComponent();
     _types = WebClientData.GetJavascriptTypes();
     foreach (string s in _types.Keys)
     {
         listBox1.Items.Add(s);
     }
 }
Example #2
0
        public static void AdapterQuestion(string[] args)
        {
            WebClientData webcd = new WebClientData("name", 1, "1.0.1.0", true);

            draw(new BadStoreToPerfectStoreAdapter(), webcd);

            Console.WriteLine("\n====================");
            Console.WriteLine("Print before the adapter");
            Console.WriteLine("\n====================\n");

            draw(new BadStore(), webcd);
        }
        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 #4
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);
        }
    }
Example #5
0
 // non mutable
 private static void draw(IDBWebData dbwebdata, WebClientData webcd)
 {
     dbwebdata.Store(webcd);
 }
        public void Store(WebClientData wcd)
        {
            PerfectStore p = new PerfectStore();

            p.Store(new ClientData(wcd.ID, wcd.name));
        }
Example #7
0
        public void store(WebClientData webClientData)
        {
            ClientData clientData = new ClientData(webClientData.name, webClientData.ID);

            Console.WriteLine(clientData.ID + "," + clientData.name);
        }