示例#1
0
        /// <summary>
        /// Disposes the current instance of this object.
        /// </summary>
        /// <param name="disposing">
        /// true to release both managed and unmanaged resources;
        /// false to release only unmanaged resources.
        /// </param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                this.FK_Ord_LngCustomerID = null;
            }

            base.Dispose(disposing);
        }
示例#2
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>
        /// <param name="FK_Ord_LngCustomerID">Value for this foreign key.</param>
        public void Initialize(System.Net.NetworkCredential networkCredential, WS_tblOrder_Record.WSInt32 FK_Ord_LngCustomerID)
        {
            this.networkCredential = networkCredential;

            tblOrder_RecordWebService             = new WS_tblOrder_Record.tblOrder_Record();
            tblOrder_RecordWebService.Credentials = this.networkCredential;

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

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

            this.FK_Ord_LngCustomerID = FK_Ord_LngCustomerID;
        }