Пример #1
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Client callback = new Client();
            Proxy proxy = new Proxy(callback);

            new Login(proxy).Show();
            Application.Run();
        }
Пример #2
0
 public Proxy(Client callback)
 {
     client = callback;
     InstanceContext instanceContext = new InstanceContext(callback);
     server = new ServerProxy.ServiceClient(instanceContext);
 }