Ejemplo n.º 1
0
        public PluginMenu(IBishop plugin)
        {
            this.plugin = plugin;
            bishopMenu  = new MenuItem("&Bishop");

            MenuItem it;

            // Castle
            PrepareServerMenu();
            it = new MenuItem("-");
            bishopMenu.MenuItems.Add(it);

            // HTTPS -> HTTP emulator
            it = new MenuItem("&Emulate HTTPS (localhost)")
            {
                Name       = "miEnableTlsEdgeRouter",
                RadioCheck = false,
                Checked    = false
            };
            it.Click += (o, ev) => {
                var mi = (MenuItem)o;
                mi.Checked = !mi.Checked;
                plugin.SetHttpsLocalInterception(mi.Checked);
            };
            bishopMenu.MenuItems.Add(it);

            it = new MenuItem("-");
            bishopMenu.MenuItems.Add(it);

            // options dialog
            it        = new MenuItem("Tampering &options...");
            it.Click += TamperingOptions_Click;
            bishopMenu.MenuItems.Add(it);

            it = new MenuItem("-");
            bishopMenu.MenuItems.Add(it);

            // about dialog
            it        = new MenuItem("About Bishop...");
            it.Click += (o, ev) => {
                new AboutForm().ShowDialog(FiddlerApplication.UI);
            };
            bishopMenu.MenuItems.Add(it);
        }
Ejemplo n.º 2
0
 public Bishop(IBishop other) :
     base(other)
 {
     SpriteImageFilePath = DefaultSpriteImageFiles[this.Color];
 }
Ejemplo n.º 3
0
 public Bishop(IBishop other) :
     base(other)
 {
 }