﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<StiSerializer version="1.0" application="StiReport">
  <CacheAllData>True</CacheAllData>
  <Dictionary Ref="1" type="Dictionary" isKey="true">
    <Databases isList="true" count="0" />
    <DataSources isList="true" count="9">
      <Categories Ref="2" type="DataTableSource" isKey="true">
        <Alias>Categories</Alias>
        <Columns isList="true" count="3">
          <value>CategoryID,System.Int32</value>
          <value>CategoryName,System.String</value>
          <value>Description,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Categories</Name>
        <NameInSource>Demo.Categories</NameInSource>
      </Categories>
      <Countries Ref="3" type="DataTableSource" isKey="true">
        <Alias>Countries</Alias>
        <Columns isList="true" count="3">
          <value>CountriesID,System.Int32</value>
          <value>CountryName,System.String</value>
          <value>Flag,System.Byte[]</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Countries</Name>
        <NameInSource>Demo.Countries</NameInSource>
      </Countries>
      <Customers Ref="4" type="DataTableSource" isKey="true">
        <Alias>Customers</Alias>
        <Columns isList="true" count="11">
          <value>Address,System.String</value>
          <value>City,System.String</value>
          <value>CompanyName,System.String</value>
          <value>ContactName,System.String</value>
          <value>ContactTitle,System.String</value>
          <value>Country,System.String</value>
          <value>CustomerID,System.String</value>
          <value>Fax,System.String</value>
          <value>Phone,System.String</value>
          <value>PostalCode,System.String</value>
          <value>Region,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Customers</Name>
        <NameInSource>Demo.Customers</NameInSource>
      </Customers>
      <Employees Ref="5" type="DataTableSource" isKey="true">
        <Alias>Employees</Alias>
        <Columns isList="true" count="14">
          <value>Address,System.String</value>
          <value>BirthDate,System.DateTime</value>
          <value>City,System.String</value>
          <value>Country,System.String</value>
          <value>EmployeeID,System.Int32</value>
          <value>FirstName,System.String</value>
          <value>HireDate,System.DateTime</value>
          <value>HomePhone,System.String</value>
          <value>LastName,System.String</value>
          <value>Notes,System.String</value>
          <value>PostalCode,System.String</value>
          <value>Region,System.String</value>
          <value>ReportsTo,System.Int32</value>
          <value>Title,System.String</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Employees</Name>
        <NameInSource>Demo.Employees</NameInSource>
      </Employees>
      <Order_x0020_Details Ref="6" type="DataTableSource" isKey="true">
        <Alias>Order Details</Alias>
        <Columns isList="true" count="5">
          <value>Discount,System.Single</value>
          <value>OrderID,System.Int32</value>
          <value>ProductID,System.Int32</value>
          <value>Quantity,System.Int16</value>
          <value>UnitPrice,System.Decimal</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Order Details</Name>
        <NameInSource>Demo.Order Details</NameInSource>
      </Order_x0020_Details>
      <Orders Ref="7" type="DataTableSource" isKey="true">
        <Alias>Orders</Alias>
        <Columns isList="true" count="14">
          <value>CustomerID,System.String</value>
          <value>EmployeeID,System.Int32</value>
          <value>Freight,System.Decimal</value>
          <value>OrderDate,System.DateTime</value>
          <value>OrderID,System.Int32</value>
          <value>RequiredDate,System.DateTime</value>
          <value>ShipAddress,System.String</value>
          <value>ShipCity,System.String</value>
          <value>ShipCountry,System.String</value>
          <value>ShipName,System.String</value>
          <value>ShippedDate,System.DateTime</value>
          <value>ShipPostalCode,System.String</value>
          <value>ShipRegion,System.String</value>
          <value>ShipVia,System.Int32</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Orders</Name>
        <NameInSource>Demo.Orders</NameInSource>
      </Orders>
      <Products Ref="8" type="DataTableSource" isKey="true">
        <Alias>Products</Alias>
        <Columns isList="true" count="7">
          <value>CategoryID,System.Int32</value>
          <value>ProductID,System.Int32</value>
          <value>ProductName,System.String</value>
          <value>QuantityPerUnit,System.String</value>
          <value>SupplierID,System.Int32</value>
          <value>UnitPrice,System.Decimal</value>
          <value>UnitsInStock,System.Int16</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Products</Name>
        <NameInSource>Demo.Products</NameInSource>
      </Products>
      <Shippers Ref="9" type="DataTableSource" isKey="true">
        <Alias>Shippers</Alias>
        <Columns isList="true" count="3">
          <value>CompanyName,System.String</value>
          <value>Phone,System.String</value>
          <value>ShipperID,System.Int32</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Shippers</Name>
        <NameInSource>Demo.Shippers</NameInSource>
      </Shippers>
      <Suppliers Ref="10" type="DataTableSource" isKey="true">
        <Alias>Suppliers</Alias>
        <Columns isList="true" count="12">
          <value>Address,System.String</value>
          <value>City,System.String</value>
          <value>CompanyName,System.String</value>
          <value>ContactName,System.String</value>
          <value>ContactTitle,System.String</value>
          <value>Country,System.String</value>
          <value>Fax,System.String</value>
          <value>HomePage,System.String</value>
          <value>Phone,System.String</value>
          <value>PostalCode,System.String</value>
          <value>Region,System.String</value>
          <value>SupplierID,System.Int32</value>
        </Columns>
        <Dictionary isRef="1" />
        <Name>Suppliers</Name>
        <NameInSource>Demo.Suppliers</NameInSource>
      </Suppliers>
    </DataSources>
    <Relations isList="true" count="0" />
    <Report isRef="0" />
    <Variables isList="true" count="1">
      <value>,MyVariable,MyVariable,System.String,,False,False</value>
    </Variables>
  </Dictionary>
  <GlobalizationStrings isList="true" count="0" />
  <Pages isList="true" count="2">
    <Form1 Ref="11" type="Stimulsoft.Report.ReportControls.StiForm" isKey="true">
      <BackColor>Control</BackColor>
      <Components isList="true" count="8">
        <t1 Ref="12" type="Stimulsoft.Report.ReportControls.StiTextBoxControl" isKey="true">
          <BackColor>Window</BackColor>
          <ClientRectangle>240,32,192,20</ClientRectangle>
          <Components isList="true" count="0" />
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Location>240, 32</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>t1</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <Size>192, 20</Size>
          <Text />
        </t1>
        <LabelControl1 Ref="13" type="Stimulsoft.Report.ReportControls.StiLabelControl" isKey="true">
          <BackColor>Control</BackColor>
          <ClientRectangle>240,8,136,16</ClientRectangle>
          <Components isList="true" count="0" />
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Location>240, 8</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>LabelControl1</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <Size>136, 16</Size>
          <Text>SelectedItem property</Text>
        </LabelControl1>
        <ButtonControl2 Ref="14" type="Stimulsoft.Report.ReportControls.StiButtonControl" isKey="true">
          <ClickEvent>MyVariable = ComboBox1.SelectedItem.ToString();</ClickEvent>
          <ClientRectangle>312,144,96,24</ClientRectangle>
          <Components isList="true" count="0" />
          <DialogResult>OK</DialogResult>
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Location>312, 144</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>ButtonControl2</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <Size>96, 24</Size>
          <Text>Ok</Text>
        </ButtonControl2>
        <ComboBox1 Ref="15" type="Stimulsoft.Report.ReportControls.StiComboBoxControl" isKey="true">
          <BackColor>Window</BackColor>
          <ClientRectangle>0,32,216,20</ClientRectangle>
          <Components isList="true" count="0" />
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Items isList="true" count="3">
            <value>1</value>
            <value>2</value>
            <value>3</value>
          </Items>
          <Location>0, 32</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>ComboBox1</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <SelectedIndexChangedEvent>t1.Text = ComboBox1.SelectedItem.ToString();
if (ComboBox1.SelectedIndex &gt;= 0)
{
	int index = (int)Categories.GetData("CategoriesID", ComboBox1.SelectedIndex);
	t2.Text = index.ToString();
    
	ComboBox2.Control.Items.Clear();
	Products.First();

	while (!Products.IsEof)
	{
		if (Products.CategoryID == index)
		{
			ComboBox2.Control.Items.Add(Products.ProductName);
		}
		Products.Next();
	}
	ComboBox2.Control.SelectedIndex = 0;
}
  </SelectedIndexChangedEvent>
          <Size>216, 20</Size>
          <Text>ComboBox</Text>
        </ComboBox1>
        <Label1 Ref="16" type="Stimulsoft.Report.ReportControls.StiLabelControl" isKey="true">
          <BackColor>Control</BackColor>
          <ClientRectangle>0,8,144,16</ClientRectangle>
          <Components isList="true" count="0" />
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Location>0, 8</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>Label1</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <Size>144, 16</Size>
          <Text>Combobox Component</Text>
        </Label1>
        <Label2 Ref="17" type="Stimulsoft.Report.ReportControls.StiLabelControl" isKey="true">
          <BackColor>Control</BackColor>
          <ClientRectangle>448,8,264,24</ClientRectangle>
          <Components isList="true" count="0" />
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Location>448, 8</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>Label2</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <Size>264, 24</Size>
          <Text>'CategoriesID' from the Categories DataSource</Text>
        </Label2>
        <t2 Ref="18" type="Stimulsoft.Report.ReportControls.StiTextBoxControl" isKey="true">
          <BackColor>Window</BackColor>
          <ClientRectangle>448,32,264,20</ClientRectangle>
          <Components isList="true" count="0" />
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Location>448, 32</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>t2</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <Size>264, 20</Size>
          <Text />
        </t2>
        <ComboBox2 Ref="19" type="Stimulsoft.Report.ReportControls.StiComboBoxControl" isKey="true">
          <BackColor>Window</BackColor>
          <ClientRectangle>0,80,216,20</ClientRectangle>
          <Components isList="true" count="0" />
          <Font>Microsoft Sans Serif,8</Font>
          <ForeColor>Black</ForeColor>
          <Guid>b2828e245c6344fc9b236ebec29f8fb4</Guid>
          <Items isList="true" count="3">
            <value>1</value>
            <value>2</value>
            <value>3</value>
          </Items>
          <Location>0, 80</Location>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>ComboBox2</Name>
          <Page isRef="11" />
          <Parent isRef="11" />
          <Size>216, 20</Size>
          <Text>ComboBox</Text>
        </ComboBox2>
      </Components>
      <Font>Microsoft Sans Serif,8</Font>
      <Guid>738cb1c16af549b5ac921e70864a8884</Guid>
      <LoadFormEvent>ComboBox1.Control.Items.Clear();
while (!Categories.IsEof)
{
	ComboBox1.Control.Items.Add(Categories.CategoryName);
	Categories.Next();
}</LoadFormEvent>
      <Location>0, 0</Location>
      <Name>Form1</Name>
      <Page isRef="11" />
      <Report isRef="0" />
      <Size>736, 200</Size>
      <Text>Form</Text>
    </Form1>
    <Page1 Ref="20" type="Page" isKey="true">
      <Border>None;Black;2;Solid;False;4;Black</Border>
      <Brush>Transparent</Brush>
      <Components isList="true" count="1">
        <Text9 Ref="21" type="Text" isKey="true">
          <Border>All;Black;1;Solid;False;4;Black</Border>
          <Brush>Transparent</Brush>
          <ClientRectangle>0.6,0.6,9,1.2</ClientRectangle>
          <Conditions isList="true" count="0" />
          <Font>Arial,9,Bold</Font>
          <LinesOfUnderline>None</LinesOfUnderline>
          <Margins>0,0,0,0</Margins>
          <MaxSize>0,0</MaxSize>
          <MinSize>0,0</MinSize>
          <Name>Text9</Name>
          <Page isRef="20" />
          <Parent isRef="20" />
          <Text>MyVarible = {MyVariable} 
ComboBox1.SelectedItem = {ComboBox1.SelectedItem.ToString()}
CategoriesID = {ComboBox1.SelectedIndex == -1?"":Categories.GetData("CategoriesID", ComboBox1.SelectedIndex).ToString()}</Text>
          <TextBrush>DarkBlue</TextBrush>
          <TextFormat Ref="22" type="GeneralFormat" isKey="true" />
          <Type>Expression</Type>
        </Text9>
      </Components>
      <Conditions isList="true" count="0" />
      <Guid>b606f9829d4546b09736bcdc6a2edbd3</Guid>
      <Margins>1,1,1,1</Margins>
      <Name>Page1</Name>
      <Page isRef="20" />
      <PageHeight>29.7</PageHeight>
      <PageWidth>21</PageWidth>
      <Report isRef="0" />
      <Watermark Ref="23" type="Stimulsoft.Report.Components.StiWatermark" isKey="true">
        <Font>Arial,100,Bold</Font>
        <TextBrush>[50:0:0:0]</TextBrush>
      </Watermark>
    </Page1>
  </Pages>
  <PreviewMode>StandardAndDotMatrix</PreviewMode>
  <PreviewSettings>33538047</PreviewSettings>
  <PrinterSettings Ref="24" type="Stimulsoft.Report.Print.StiPrinterSettings" isKey="true" />
  <ReferencedAssemblies isList="true" count="8">
    <value>System.Dll</value>
    <value>System.Drawing.Dll</value>
    <value>System.Windows.Forms.Dll</value>
    <value>System.Data.Dll</value>
    <value>System.Xml.Dll</value>
    <value>Stimulsoft.Base.Dll</value>
    <value>Stimulsoft.Controls.Dll</value>
    <value>Stimulsoft.Report.Dll</value>
  </ReferencedAssemblies>
  <ReportAlias>Simple List</ReportAlias>
  <ReportAuthor isNull="true" />
  <ReportChanged>5/23/2008 8:24:14 PM</ReportChanged>
  <ReportCreated>5/29/2004 10:59:00 AM</ReportCreated>
  <ReportDescription isNull="true" />
  <ReportGuid>eb768eac4a604b978b2521a6efbc6436</ReportGuid>
  <ReportName>Report</ReportName>
  <ReportUnit>Centimeters</ReportUnit>
  <ReportVersion>2008.1.228</ReportVersion>
  <Script>using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.ReportControls;
using Stimulsoft.Report.Components;

namespace Reports
{
    
    public class SimpleList : Stimulsoft.Report.StiReport
    {
        
		public SimpleList()
        {
            this.InitializeComponent();
        }
        #region StiReport Designer generated code - do not modify#endregion StiReport Designer generated code - do not modify
    }
}</Script>
  <ScriptLanguage>CSharp</ScriptLanguage>
  <Styles isList="true" count="1">
    <Odd Ref="25" type="Stimulsoft.Report.StiStyle" isKey="true">
      <Brush>PapayaWhip</Brush>
      <Font>Arial,8</Font>
      <Name>Odd</Name>
      <TextBrush>Black</TextBrush>
    </Odd>
  </Styles>
</StiSerializer>