Exemple #1
0
        /// <summary>
        /// Initializes the control. You need to specify how to connect to the
        /// SQL Server database and if you want to populate the whole table content or
        /// only a subset (based on its foreign keys). The data will only be populated once
        /// you have called the RefreshData method.
        /// </summary>
        public void Initialize(System.Net.NetworkCredential networkCredential)
        {
            this.networkCredential = networkCredential;

            categoryWebService             = new WS_Category.Category();
            categoryWebService.Credentials = this.networkCredential;

            string url = ConfigurationSettings.AppSettings["WS_Category"];

            if (url != null && url.Length != 0)
            {
                categoryWebService.Url = url;
            }
        }