static void Main()
        {
            ChannelFactory <INCService> remoteFactory = new ChannelFactory <INCService>("NCConfig");
            INCService remoteProxy = remoteFactory.CreateChannel();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(remoteProxy));
        }
Example #2
0
 public Form1(INCService rp)
 {
     InitializeComponent();
     this.remoteProxy = rp;
 }
Example #3
0
 public Form2(INCService rp, User u)
 {
     InitializeComponent();
     this.client      = u;
     this.remoteProxy = rp;
 }