示例#1
0
        private void Listele()
        {
            IEnumerable <DAL.EntityFramework.Tables.Stoklar> result
                = _stok.All();

            stoklarDataGridView.DataSource
                = result.ToList();
            stoklarDataGridView.Columns["StokId"].Visible                = false;
            stoklarDataGridView.Columns["AlisTarihi"].Visible            = false;
            stoklarDataGridView.Columns["Malzemeler"].Visible            = false;
            stoklarDataGridView.Columns["StokKgBirimAlinan"].Visible     = false;
            stoklarDataGridView.Columns["StokAdi"].AutoSizeMode          = DataGridViewAutoSizeColumnMode.Fill;
            stoklarDataGridView.Columns["StokTutari"].AutoSizeMode       = DataGridViewAutoSizeColumnMode.AllCells;
            stoklarDataGridView.Columns["StokKgBirimKalan"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
            //stoklarDataGridView.Columns[3].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
        }
示例#2
0
        void Listele()
        {
            //ICollection<Malzeme> sa = frmYeniYemekler.yemekModel.Malzemeler;

            List <DAL.EntityFramework.Tables.Stoklar> result =
                _stok.All().ToList();

            stokDataGridView.
            DataSource = result;
            stokDataGridView.Columns["StokId"].Visible            = false;
            stokDataGridView.Columns["StokId"].Visible            = false;
            stokDataGridView.Columns["StokTutari"].Visible        = false;
            stokDataGridView.Columns["StokKgBirimAlinan"].Visible = false;
            stokDataGridView.Columns["AlisTarihi"].Visible        = false;
            stokDataGridView.Columns["Malzemeler"].Visible        = false;
            stokDataGridView.Columns["StokAdi"].AutoSizeMode      = DataGridViewAutoSizeColumnMode.Fill;
        }
示例#3
0
 public IEnumerable <Stoklar> All()
 {
     return(_manager.All());
 }