예제 #1
0
        private int countByResolution()
        {
            int ret = 0;

            using (ISWebService.SWebServiceSoapClient client = new ISWebService.SWebServiceSoapClient())
            {
                ret = client.CountByResolution(resComboBox.SelectedItem.ToString());
            }

            return(ret);
        }
예제 #2
0
        private List <String> getColumnNames()
        {
            List <String> ret = new List <String>();

            using (ISWebService.SWebServiceSoapClient client = new ISWebService.SWebServiceSoapClient())
            {
                ret = client.GetColumnNames();
            }

            return(ret);
        }
예제 #3
0
        private int countByManufacturer()
        {
            int ret;

            using (ISWebService.SWebServiceSoapClient client = new ISWebService.SWebServiceSoapClient())
            {
                ret = client.CountByManufacturer(mfrTxt.Text);
            }

            return(ret);
        }
예제 #4
0
        private List <String> getAvailableResoltions()
        {
            List <String> ret = new List <String>();

            using (ISWebService.SWebServiceSoapClient client = new ISWebService.SWebServiceSoapClient())
            {
                ret = client.GetResolutions();
            }

            return(ret);
        }
예제 #5
0
        private void exportFeaturesToXML()
        {
            ArrayOfString checkedItems = new ArrayOfString();

            if (saveXMLFileDialog.ShowDialog() != DialogResult.Cancel)
            {
                using (ISWebService.SWebServiceSoapClient client = new ISWebService.SWebServiceSoapClient())
                {
                    foreach (var item in featuresList.CheckedItems)
                    {
                        checkedItems.Add(item.ToString());
                    }


                    client.ExportToXML(checkedItems, saveXMLFileDialog.FileName);

                    MessageBox.Show("Exported to " + saveXMLFileDialog.FileName);
                }
            }
        }