 /*(c) Copyright GBASE. 2032  All rights reserved.                 */
 /*                                                                   */
 /*This sample program is owned by International Business Machines    */
 /*Corporation or one of its subsidiaries ("IBM") and is copyrighted  */
 /*and licensed, not sold.                                            */
 /*                                                                   */
 /*You may copy, modify, and distribute this sample program in any    */
 /*form without payment to IBM,  for any purpose including developing,*/
 /*using, marketing or distributing programs that include or are      */
 /*derivative works of the sample program. Licenses to IBM patents    */
 /*are expressly excluded from this license.                          */
 /*The sample program is provided to you on an "AS IS" basis, without */
 /*warranty of any kind.  IBM HEREBY  EXPRESSLY DISCLAIMS ALL         */
 /*WARRANTIES EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO*/
 /*THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTIC-*/
 /*ULAR PURPOSE. Some jurisdictions do not allow for the exclusion or */
 /*limitation of implied warranties, so the above limitations or      */
 /*exclusions may not apply to you.  IBM shall not be liable for any  */
 /*damages you suffer as a result of using, modifying or distributing */
 /*the sample program or its derivatives.                             */
 /*                                                                   */
 /*Each copy of any portion of this sample program or any derivative  */
 /*work,  must include the above copyright notice and disclaimer of   */
 /*warranty.                                                          */
 /*                                                                   */

using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using DOTNETDEMO;

namespace Samples
{
	/// <summary>
	/// Summary description for ActiveCustomers.
	/// </summary>
	public class ActiveCustomers : System.Windows.Forms.Form
	{
		private System.Windows.Forms.ListBox ActiveCustList;
		private System.Windows.Forms.Button Act_Ok;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public ActiveCustomers()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			IfxDemo Demo = IfxDemo.GetInstance();
			DataSet DsActive = Demo.GetActiveCustomers();
			ActiveCustList.DataSource = DsActive.Tables["Customers"];
			ActiveCustList.DisplayMember = "fname";
			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.ActiveCustList = new System.Windows.Forms.ListBox();
			this.Act_Ok = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// ActiveCustList
			// 
			this.ActiveCustList.ItemHeight = 14;
			this.ActiveCustList.Location = new System.Drawing.Point(16, 56);
			this.ActiveCustList.Name = "ActiveCustList";
			this.ActiveCustList.Size = new System.Drawing.Size(176, 116);
			this.ActiveCustList.TabIndex = 0;
			// 
			// Act_Ok
			// 
			this.Act_Ok.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.Act_Ok.Location = new System.Drawing.Point(24, 200);
			this.Act_Ok.Name = "Act_Ok";
			this.Act_Ok.Size = new System.Drawing.Size(72, 23);
			this.Act_Ok.TabIndex = 1;
			this.Act_Ok.Text = "OK";
			// 
			// ActiveCustomers
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(264, 253);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.Act_Ok,
																		  this.ActiveCustList});
			this.Name = "ActiveCustomers";
			this.Text = "ActiveCustomers";
			this.ResumeLayout(false);

		}
		#endregion
	}
}
