示例#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);
                }
            }
        }