示例#1
0
        public LoginForm()
        {
            //eg:if both and client and server apps are on the same machine
            clientproxy = (IRemoteObject)Activator.GetObject(typeof(IRemoteObject), "http://localhost:1234/Service");

            //eg:if both and client and server apps are on different machines.
            // clientproxy = (Common.IRemoteObject)Activator.GetObject(typeof(Common.IRemoteObject), "http://192.168.0.104:1234/Service");

            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
        }
示例#2
0
        public LoginForm()
        {
            //eg:if both and client and server apps are on the same machine
            clientproxy = (IRemoteObject)Activator.GetObject(typeof(IRemoteObject), "http://localhost:1234/Service");

            //eg:if both and client and server apps are on different machines.
            // clientproxy = (Common.IRemoteObject)Activator.GetObject(typeof(Common.IRemoteObject), "http://192.168.0.104:1234/Service");

            InitializeComponent();
            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
        }