示例#1
0
		static void Main(string[] args)
		{


			var act = new Func<object>(() =>
			{
				return "test";
			});

			console.key("WeiboSDK_V3 Console 示例");
			console.key("版权所有 (C) NetDimension Studio 保留全部权利。");
			var loop = true;
			while (loop)
			{
				console.tip("1. 新浪微博测试");
				console.tip("2. 腾讯开发平台测试");
				console.tip("3. 退出");

				Console.Write("选择一个项目:");




				var key = Console.ReadKey();
				console.log();

				switch (key.Key)
				{
					case ConsoleKey.D1:
						var sina = new SinaWeiboTest();
						break;
					case ConsoleKey.D2:
						var tencent = new QQConnectTest();
						break;
					case ConsoleKey.D3:
						loop = false;
						break;
				}

				//var sinaWeibo = new SinaWeiboTest();

			}


		}
示例#2
0
        static void Main(string[] args)
        {
            var act = new Func <object>(() =>
            {
                return("test");
            });

            console.key("WeiboSDK_V3 Console 示例");
            console.key("版权所有 (C) NetDimension Studio 保留全部权利。");
            var loop = true;

            while (loop)
            {
                console.tip("1. 新浪微博测试");
                console.tip("2. 腾讯开发平台测试");
                console.tip("3. 退出");

                Console.Write("选择一个项目:");



                var key = Console.ReadKey();
                console.log();

                switch (key.Key)
                {
                case ConsoleKey.D1:
                    var sina = new SinaWeiboTest();
                    break;

                case ConsoleKey.D2:
                    var tencent = new QQConnectTest();
                    break;

                case ConsoleKey.D3:
                    loop = false;
                    break;
                }

                //var sinaWeibo = new SinaWeiboTest();
            }
        }