private void button1_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); int index = Int32.Parse(TestImgIndex.Text); int len = 0; //Quick double check there isnt nulls at the end for (int i = 0; i < testImgWaypoints[index].Length; i++) { if (testImgWaypoints[index][i] != null) { len++; } } Waypoint[] temp = new Waypoint[len]; for (int j = 0; j < temp.Length; j++) { temp[j] = testImgWaypoints[index][j]; } string text = service.RunImageProcessor(RoomName.Text, temp, 0, 17, 1); txtOutput.Text = text; //image.BackgroundImage = imageFromStream(service.getImage(text)); }
private void button1_Click_1(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); int result = service.CampusVersion(txtCampusVer.Text); string text = "Campus: " + txtCampusVer.Text + ", Version: " + result; txtOutput.Text = text; }
private void btnGetCampuses_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); string[][] result = service.SearchCampus(); string text = ""; foreach(string[] c in result) { text += "CampusID: " + c[0] + ", CampusName: " + c[1] + ", CampusVersion: " + c[2] + Environment.NewLine; text += "CampusLat-Long: " + c[3] + ", " + c[4] + ", CampusZoom: " + c[5] + Environment.NewLine; text += Environment.NewLine; } txtOutput.Text = text; }
private void btnTestDB_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); if (service.checkDBConn()) { txtOutput.Text = "Database Connected!"; } else { txtOutput.Text = "DB Connection error!"; } }
private void btnGetRooms_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); string campus = txtRoomCampus.Text; string[][] result = service.SearchRooms(campus); string text = ""; foreach (string[] r in result) { text += "WaypointID: " + r[0] + ", RoomName: " + r[1] + " , BuildingID: "+r[2] + " , image: "+r[3]; text += Environment.NewLine; } txtOutput.Text = text; }
private void btnGetCampuses_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); string[][] result = service.SearchCampus(); string text = ""; foreach (string[] c in result) { text += "CampusID: " + c[0] + ", CampusName: " + c[1] + ", CampusVersion: " + c[2] + Environment.NewLine; text += "CampusLat-Long: " + c[3] + ", " + c[4] + ", CampusZoom: " + c[5] + Environment.NewLine; text += Environment.NewLine; } txtOutput.Text = text; }
private void button2_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); string campus = txtGetService.Text; SortedList <int, string> result = service.SearchServices(campus); string text = ""; foreach (int k in result.Keys) { text += "WaypointID: " + k + ", RoomName: " + result[k]; text += Environment.NewLine; } txtOutput.Text = text; }
private void btnGetRooms_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); string campus = txtRoomCampus.Text; string[][] result = service.SearchRooms(campus); string text = ""; foreach (string[] r in result) { text += "WaypointID: " + r[0] + ", RoomName: " + r[1] + " , BuildingID: " + r[2] + " , image: " + r[3]; text += Environment.NewLine; } txtOutput.Text = text; }
private void btnTestService_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); try { if (service.checkServiceConn()) { txtOutput.Text = "Web Service Connected!"; string[] str = "helloIOSYSworld".Split(new[] { "IOSYS" }, StringSplitOptions.None); txtOutput.Text = (str[0] + " " + str[1]); } else { txtOutput.Text = "WS Connection error!"; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void btnResolvePath_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); //DISABILITY CURRENTLY DISABLED DUE TO LACK OF DATA //bool dis = rbPath_Dis.Checked; bool dis = false; string text = ""; try { int waypoint = Int32.Parse(txtPath_Waypoint.Text); SOAP_ResolvePath result = service.ResolvePath(waypoint, dis); testImgWaypoints = service.GetResolvePathLists(waypoint, dis); //text += "CampusTo: " + result.campusTok__BackingField[0] + ", " + result.campusTok__BackingField[1] + Environment.NewLine; //String[] ss = new string[result.mapsk__BackingField.Count()]; text += "Maps: " + Environment.NewLine; int index = 0; foreach (string[] m in result.mapsk__BackingField) { text += "Name: " + m[0] + ", Path: " + m[1] + Environment.NewLine; images.Add(imageFromStream(service.getImage(m[1]))); //ss[index] = m[1]; index++; } //MessageBox.Show( service.deleteImages(new String[] { "C:\\Inetpub\\vhosts\\student.mydesign.central.wa.edu.au\\httpdocs\\cf_Wayfinding_WebService\\/Img/TEST635846299800745456_ROOM_F110.png" })); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } txtOutput.Text = text; setImage(selectedImage); }
private void button2_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); string campus = txtGetService.Text; SortedList<int, string> result = service.SearchServices(campus); string text = ""; foreach (int k in result.Keys) { text += "WaypointID: " + k + ", RoomName: " + result[k]; text += Environment.NewLine; } txtOutput.Text = text; }
private void button1_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); int index = Int32.Parse(TestImgIndex.Text); int len = 0; //Quick double check there isnt nulls at the end for(int i = 0; i < testImgWaypoints[index].Length; i++) { if(testImgWaypoints[index][i] != null) { len++; } } Waypoint[] temp = new Waypoint[len]; for(int j = 0; j < temp.Length; j++) { temp[j] = testImgWaypoints[index][j]; } string text = service.RunImageProcessor(RoomName.Text, temp,0,17,1); txtOutput.Text = text; //image.BackgroundImage = imageFromStream(service.getImage(text)); }
private void btnTestService_Click(object sender, EventArgs e) { txtOutput.Clear(); WF_Service_InterfaceClient service = new WF_Service_InterfaceClient(); try { if (service.checkServiceConn()) { txtOutput.Text = "Web Service Connected!"; string[] str = "helloIOSYSworld".Split(new[] { "IOSYS"},StringSplitOptions.None); txtOutput.Text = (str[0] + " " + str[1]); } else { txtOutput.Text = "WS Connection error!"; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }