Ejemplo n.º 1
0
        public void loadData()
        {
            cmbAlbum.DisplayMember = AIOConstant.GetColumnName(AIOSubInfoType.MUSIC_ALBUM);
            cmbAlbum.ValueMember   = "ID";

            cmbArtist.DisplayMember = AIOConstant.GetColumnName(AIOSubInfoType.MUSIC_ARTIST);
            cmbArtist.ValueMember   = "ID";

            reloadAlbum();
            reloadArtist();
        }
Ejemplo n.º 2
0
        private void LoadData()
        {
            cboAuthor.DisplayMember = AIOConstant.GetColumnName(AIOSubInfoType.BOOK_AUTHOR);
            cboAuthor.ValueMember   = "ID";

            cboGenre.DisplayMember = AIOConstant.GetColumnName(AIOSubInfoType.BOOK_GENRE);
            cboGenre.ValueMember   = "ID";

            cboPublisher.DisplayMember = AIOConstant.GetColumnName(AIOSubInfoType.BOOK_PUBLISHER);
            cboPublisher.ValueMember   = "ID";

            ReloadAuthor();
            ReloadGenre();
            ReloadPublisher();
        }
Ejemplo n.º 3
0
        private void LoadData()
        {
            //Change styes
            //DataGridTableStyle tableStyle = gridData.TableStyles[0];
            //DataGridColumnStyle colStyle = tableStyle.GridColumnStyles[1];
            //colStyle.Width = 200;
            table = aioDb.GetAllName(subInfoType);
            gridData.DataSource = table;

            //Change some styles
            colIDStyle.MappingName   = "ID";
            colIDStyle.HeaderText    = "No.";
            colNameStyle.MappingName = AIOConstant.GetColumnName(subInfoType);
            colNameStyle.HeaderText  = lblName.Text;
            colNameStyle.Width       = 200;

            //Bind to combobox
            cboName.DataSource    = table;
            cboName.DisplayMember = AIOConstant.GetColumnName(subInfoType);
            cboName.ValueMember   = "ID";
        }