Esempio n. 1
0
        static void Main(string[] args)
        {
            MyServiceProxy proxy = new MyServiceProxy();

            proxy.SayHello("Syed");
            proxy.TodayProgram("Syed");
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            while (true)
            {
                MyServiceProxy myService = new MyServiceProxy();

                Console.WriteLine("\r\nEnter a name");
                string data = myService.GetLargeData(Console.ReadLine());

                Console.WriteLine(data);
            }
        }
Esempio n. 3
0
        private void btn_CurrentTime_Click(object sender, EventArgs e)
        {
            DateTime dtNow = MyServiceProxy.GetCurrentTime();

            MessageBox.Show("当前时间:" + dtNow.ToString());
        }