private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Client callback = new Client(); Proxy proxy = new Proxy(callback); new Login(proxy).Show(); Application.Run(); }
public Proxy(Client callback) { client = callback; InstanceContext instanceContext = new InstanceContext(callback); server = new ServerProxy.ServiceClient(instanceContext); }