Esempio n. 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //EmsServiceClient c_EmsService = new EmsServiceClient("xxx","http://localhost:7777/EmsService");
            EmsServiceClient       c_EmsService           = new EmsServiceClient("http://webserv.thematrix.net:7777/EmsService");
            EmsMachineRegisterInfo emsMachineRegisterInfo = new EmsMachineRegisterInfo("TWE-00", "MP-TWE-00", "MP", "Y1E3120-4P", "", 0, 0, 0, 0, 0);

            c_EmsService.Register(emsMachineRegisterInfo);
        }
Esempio n. 2
0
        private void ButtonRegister_Click(object sender, EventArgs e)
        {
            EmsMachineRegisterInfo emri = new EmsMachineRegisterInfo(TextBoxMCNo.Text,
                                                                     TextBoxArea.Text,
                                                                     TextBoxProcessName.Text,
                                                                     TextBoxMachineType.Text,
                                                                     "", 0, 0, 0, 0, 0);

            m_ServiceClient.Register(emri);
        }