Ejemplo n.º 1
0
        private void OnSelectItem(object sender, ItemClickEventArgs e)
        {
            ToolStrip.Visible = false;
            switch ((string)e.Item.BarItem.Tag)
            {
                case "WebBrowser" : //int index = TabControl.TabPages.IndexOfKey("WebBrowser");
                                    //WebBrowser webBrowser = TabControl.TabPages[index].Browser;
                                    TabControl.SelectTab(TabControl.TabPages.IndexOfKey("WebBrowser"));
                                    //UoFiddler.Browser.Url = new Uri("http://www.uoquint.ru");
                                    //UoFiddler.Browser.
                                    break;
                case "StartPage" : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Start"));
                                   ToolStrip.Visible = true;                                         break;
                case "Options"   : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Options"));  break;

                case "cmd"      : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("cmd"));       break;
                case "centred"  : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("CentrEd"));   break;
                case "regions"  : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("regions"));   break;

                case "Animation": TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Animation")); break;
                case "AnimData" : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("AnimData"));  break;
                case "Items"    : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Items"));     break;
                case "TileDatas": TabControl.SelectTab(TabControl.TabPages.IndexOfKey("TileDatas")); break;
                case "LandTiles": TabControl.SelectTab(TabControl.TabPages.IndexOfKey("LandTiles")); break;
                case "Texture"  : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Texture"));   break;
                case "Multis"   : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Multis"));    break;
                case "Gumps"    : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Gumps"));     break;
                case "Sounds"   : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Sounds"));    break;
                case "Light"    : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Light"));     break;
                case "Hue"      : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Hue"));       break;
                case "fonts"    : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("fonts"));     break;
                case "CliLoc"   : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("CliLoc"));    break;
                case "speech"   : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("speech"));    break;
                case "Skills"   : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("Skills"));    break;
                case "SkillGrp" : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("SkillGrp"));  break;
                case "map"      : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("map"));       break;
                case "RadarCol" : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("RadarCol"));  break;
                case "multimap" : TabControl.SelectTab(TabControl.TabPages.IndexOfKey("multimap"));  break;
            }
            //MessageBox.Show("есть");
        }
Ejemplo n.º 2
0
 public void ItemClickInvoke(object sender, ItemClickEventArgs e)
 {
     ItemClickEvent(sender, e);
 }