Exemplo n.º 1
0
 public void ChangeOverrideClick(bool value, bool init)
 {
     if (FiddlerControls.Options.DesignAlternative)
     {
         FiddlerControls.ItemShowAlternative itemshowalt = Host.GetItemShowAltControl();
         PictureBox picturebox = Host.GetItemShowAltPictureBox();
         if (value)
         {
             picturebox.MouseDoubleClick -= new MouseEventHandler(itemshowalt.OnMouseDoubleClick);
             picturebox.MouseDoubleClick += new MouseEventHandler(this.PlugOnDoubleClick);
         }
         else if (!init)
         {
             picturebox.MouseDoubleClick -= new MouseEventHandler(this.PlugOnDoubleClick);
             picturebox.MouseDoubleClick += new MouseEventHandler(itemshowalt.OnMouseDoubleClick);
         }
     }
     else
     {
         FiddlerControls.ItemShow itemshow = Host.GetItemShowControl();
         ListView listview = Host.GetItemShowListView();
         if (value)
         {
             listview.MouseDoubleClick -= new MouseEventHandler(itemshow.listView_DoubleClicked);
             listview.MouseDoubleClick += new MouseEventHandler(this.PlugOnDoubleClick);
         }
         else if (!init)
         {
             listview.MouseDoubleClick -= new MouseEventHandler(this.PlugOnDoubleClick);
             listview.MouseDoubleClick += new MouseEventHandler(itemshow.listView_DoubleClicked);
         }
     }
 }
Exemplo n.º 2
0
 public override void Initialize()
 {
     if (FiddlerControls.Options.DesignAlternative)
     {
         itemshowalt = Host.GetItemShowAltControl();
     }
     else
     {
         itemshow = Host.GetItemShowControl();
     }
     //make something usefull
 }
Exemplo n.º 3
0
 public override void Initialize()
 {
     if (FiddlerControls.Options.DesignAlternative)
         itemshowalt = Host.GetItemShowAltControl();
     else
         itemshow = Host.GetItemShowControl();
     //make something usefull
 }