Example #1
0
        static void Main()
        {
            Console.WriteLine("Setup registry");
            BrowserEmulation.Emulate(BrowserEmulation.IE11_IgnoreDoctype);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Console.WriteLine("Creating Dialog");
            WebDialog wd = new WebDialog("Interface/ColorPicker.zip");

            wd["currentColor"] = Color.AliceBlue;
            wd["colors"]       = new object[] { Color.AliceBlue, Color.Aqua, Color.AntiqueWhite, Color.Bisque, Color.BlueViolet, Color.DarkSalmon };
            Console.WriteLine("Opening Window");
            Application.Run(wd);
        }
 public static void Change(BrowserEmulation emulation)
 {
     switch (emulation)
     {
         case BrowserEmulation.IE10:
             Write("10000");
             break;
         case BrowserEmulation.IE9:
             Write("9000");
             break;
         case BrowserEmulation.IE8:
             Write("8000");
             break;
         case BrowserEmulation.Default:
             Write("7000");
             break;
     }
 }