Пример #1
0
        public FormSelectPublisher(bool allowNew)
        {
            InitializeComponent();

            // If we are to allow a new publisher to be specified then enable the new button
            bnNewPublisher.Visible = allowNew;

            // Load the publishers into the list
            ApplicationsDAO lwDataAccess    = new ApplicationsDAO();
            DataTable       publishersTable = lwDataAccess.GetPublishers("");

            //
            lvPublishers.BeginUpdate();
            foreach (DataRow row in publishersTable.Rows)
            {
                string publisher = (string)row["_PUBLISHER"];
                if (publisher != "")
                {
                    lvPublishers.Items.Add(new UltraListViewItem(publisher, null));
                }
            }
            lvPublishers.EndUpdate();
        }