当前位置: 首页>>代码示例>>C#>>正文


C# NetState.LaunchBrowser方法代码示例

本文整理汇总了C#中Server.Network.NetState.LaunchBrowser方法的典型用法代码示例。如果您正苦于以下问题:C# NetState.LaunchBrowser方法的具体用法?C# NetState.LaunchBrowser怎么用?C# NetState.LaunchBrowser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.Network.NetState的用法示例。


在下文中一共展示了NetState.LaunchBrowser方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnResponse

            public override void OnResponse( NetState sender, RelayInfo info )
            {
                switch ( info.ButtonID )
                {
                    case 1: // RunUO.com
                    {
                        sender.LaunchBrowser( "http://www.RunUO.com" );
                        break;
                    }
                    case 2: // List of skills
                    {
                        string[] strings = Enum.GetNames( typeof( SkillName ) );

                        Array.Sort( strings );

                        StringBuilder sb = new StringBuilder();

                        if ( strings.Length > 0 )
                            sb.Append( strings[0] );

                        for ( int i = 1; i < strings.Length; ++i )
                        {
                            string v = strings[i];

                            if ( (sb.Length + 1 + v.Length) >= 256 )
                            {
                                sender.Send( new AsciiMessage( Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3, "System", sb.ToString() ) );
                                sb = new StringBuilder();
                                sb.Append( v );
                            }
                            else
                            {
                                sb.Append( ' ' );
                                sb.Append( v );
                            }
                        }

                        if ( sb.Length > 0 )
                        {
                            sender.Send( new AsciiMessage( Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3, "System", sb.ToString() ) );
                        }

                        break;
                    }
                    case 3: // Command list
                    {
                        sender.Mobile.SendAsciiMessage( 0x482, "The command prefix is \"{0}\"", CommandSystem.Prefix );
                        CommandHandlers.Help_OnCommand( new CommandEventArgs( sender.Mobile, "help", "", new string[0] ) );

                        break;
                    }
                }
            }
开发者ID:Leorgrium,项目名称:runuo,代码行数:53,代码来源:TestCenter.cs

示例2: OnResponse

        public override void OnResponse(NetState sender, RelayInfo info)
        {
            Mobile from = sender.Mobile;

            switch (info.ButtonID)
            {
                case (int)Buttons.sewb: // Your Servers Website
                    {
                        sender.LaunchBrowser("http://www.uo.com");//.............................Web Address 1
                        break;
                    }

                case (int)Buttons.cclb:
                    {
                        sender.LaunchBrowser("http://www.runuo.com");//.............................Web Address 2
                        break;
                    }

                case (int)Buttons.spgb:
                    {
                        sender.LaunchBrowser("http://uo.stratics.com");////...........................Web Address 3
                        break;
                    }

                case (int)Buttons.pffb:
                    {
                        sender.LaunchBrowser("http://www.uoart.com");//.............................Web Address 4
                        break;
                    }

                case (int)Buttons.rmcb:
                    {
                        sender.LaunchBrowser("http://www.lynn.edu");//.............................Web Address 5
                        break;
                    }
                case (int)Buttons.canc:
                    {
                        m_From.CloseGump(typeof(WebStoneGump));
                        break;
                    }
            }
        }
开发者ID:romeov007,项目名称:imagine-uo,代码行数:42,代码来源:WebStone.cs

示例3: OnResponse

		public override void OnResponse( NetState sender, RelayInfo info )
		{
			switch ( info.ButtonID )
			{
				case 1: // #1 Site's Url
					{
						sender.LaunchBrowser( "http://www.covchampionofvirtues.com" );
						break;
					}
				case 2: // #2 Site's url
					{
						sender.LaunchBrowser( "http://www.covchampionofvirtues.com/forum/index.php" );
						break;
					}
				case 3: // #3 Site's url
					{
                        sender.LaunchBrowser("http://covchampionofvirtues.com/vote.htm");//("http://www.xtremetop100.com/in.php?site=1132278090");
						break;
					}
				case 4: // #4 Site's Url
					{
                        sender.LaunchBrowser("http://www.uogateway.com/shard.php?id=44&act=vote");
						break;
					}
				case 5: // #5 Site's url
					{
                        sender.LaunchBrowser("http://www.runuo.com/razor/");
						break;
					}
				case 6: // #6 Site's url
					{
                        sender.LaunchBrowser("http://guildportal.com/Guild.aspx?GuildID=342833&TabID=2870066");//"http://www.uoam.net/"
						break;
					}
			}
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:36,代码来源:WebStone.cs

示例4: OnResponse

        public override void OnResponse(NetState sender, RelayInfo info)
        {
            Mobile m = sender.Mobile;
            {
                switch (info.ButtonID)
                {
                    case (int)Buttons.WebsiteButton1:
                        sender.LaunchBrowser("http://in-uo.net/info/2011-11-06-11-05-03/regular--commands");//......Command List Url
                        break;

                    case (int)Buttons.WebsiteButton2:
                        sender.LaunchBrowser("http://in-uo.net/info/server-rules");//......Shard Rules Url
                        break;

                    case (int)Buttons.WebsiteButton3:
                        sender.LaunchBrowser("http://in-uo.net/forums");//......Forum Url
                        break;

                    case (int)Buttons.WebsiteButton4:
                        sender.LaunchBrowser("http://in-uo.net/donate");//......Shard Donation Store Url
                        break;

                    case (int)Buttons.WebsiteButton5:
                        sender.LaunchBrowser("http://in-uo.net/changelogs/2011-07-28-18-05-48");//......Shard Updates Url
                        break;

                    case (int)Buttons.WebsiteButton6:
                        sender.LaunchBrowser("http://in-uo.net/join");//how to patch
                        break;
                }
            }
        }
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:32,代码来源:OriginalPlayerGuideGump.cs

示例5: OnResponse

		public override void OnResponse( NetState sender, RelayInfo info )
		{
			switch ( info.ButtonID )
			{
				case 1: // #1 Site's Url
					{
						sender.LaunchBrowser( "http://www.defianceuo.com" );
						break;
					}
				case 2: // #2 Site's url
					{
						sender.LaunchBrowser( "http://www.defianceuo.com/forums" );
						break;
					}
				case 3: // #3 Site's url
					{
						sender.LaunchBrowser( "http://www.defianceuo.com/donate" );
						break;
					}
				case 4: // #4 Site's Url
					{
						sender.LaunchBrowser( "http://accounts.defianceuo.com/pwchange.php" );
						break;
					}
				case 5: // #5 Site's url
					{
						sender.LaunchBrowser( "http://www.defianceuo.com/download.php" );
						break;
					}
				case 6: // #6 Site's url
					{
                        sender.LaunchBrowser("http://uo.stratics.com/");
						break;
					}
			}
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:36,代码来源:Webstone.cs

示例6: OnResponse

		public override void OnResponse( NetState sender, RelayInfo info )
		{
			Mobile from = sender.Mobile;
			switch ( info.ButtonID )
			{
				case 1: // #1 Site's Url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://DragonKnights.homeip.net" );
						break;
					}
				case 2: // #2 Site's url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://dragonknights.kicks-ass.net/e107_plugins/forum/forum.php" );
						break;
					}
				case 3: // #3 Site's url
					{
						AuthorStatistics ast = ForumCore.GetAuthorStatistics( from.Serial.Value );
						if( ast.Banned )
						{
							from.SendMessage( "You have been banned from this forum!" );
							return;
						}
						ForumCore.Threads.Sort( new DateSort() );
						from.CloseGump( typeof( ForumGump ) );
						from.SendSound (1224);// 1224= click noise
						from.SendGump( new ForumGump( from, 0 ) );
						break;
					}
				case 4: // #4 Site's Url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://uo.stratics.com/" );
						break;
					}
				case 5: // #5 Site's url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://dragonknights.kicks-ass.net/download.php?view.3" );
						break;
					}
				case 6: // #6 Site's url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://dragonknights.kicks-ass.net/download.php?view.1" );
						//sender.LaunchBrowser( "http://aaaservices.homeip.net/TeamSpeak.htm" );
						break;
					}
				case 7: // #7 Site's url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://aaaservices.homeip.net/UO/status.html" );
						break;
					}
					
				case 8: // #8 Site's url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://www.xtremetop100.com/in.php?site=1132300022" );
						sender.LaunchBrowser( "http://www.gamesites200.com/ultimaonline/in.php?id=1874" );
						break;
					}

				case 9: // #9 Site's url
					{
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendGump( new WebstoneGump() );
						from.SendSound (1224);// 1224= click noise
						sender.LaunchBrowser( "http://aaaservices.homeip.net/index.html" );
						break;
					}
					

				case 0: // Close button
					{
						from.SendSound (1224);// 1224= click noise
	                    from.CloseGump(typeof(WebstoneGump));
						from.SendSound (240);
						break;
					}
					


//				case 10: // #10 Site's url
//.........这里部分代码省略.........
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:101,代码来源:WebStone.cs


注:本文中的Server.Network.NetState.LaunchBrowser方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。