static void Main() { ChannelFactory <INCService> remoteFactory = new ChannelFactory <INCService>("NCConfig"); INCService remoteProxy = remoteFactory.CreateChannel(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1(remoteProxy)); }
public Form1(INCService rp) { InitializeComponent(); this.remoteProxy = rp; }
public Form2(INCService rp, User u) { InitializeComponent(); this.client = u; this.remoteProxy = rp; }