protected void Button1_Click(object sender, EventArgs e) { Device_Operation_Lan obj = new Device_Operation_Lan(); DataTable dt = new DataTable(); dt = obj.GetUserFace("192.168.5.186", 4370); obj.InitializeDevice("192.168.5.186", 4370); obj.UploadUserFace("192.168.5.186", 4370, dt); }
protected void btnInitialize_Click(object sender, EventArgs e) { if (objDeviceOp.Device_Connection(Session["IPForOp"].ToString(), Convert.ToInt32(Session["PortForOp"]), 0)) { bool b = false; b = objDeviceOp.InitializeDevice(Session["IPForOp"].ToString(), Convert.ToInt32(Session["PortForOp"])); if (b) { DisplayMessage("Device Initialized"); } else { DisplayMessage("Error In Operation"); } } else { DisplayMessage("Unable To Connected Device"); } }