Exemplo n.º 1
0
        //-- Constructors
        public StoreForm()
        {
            InitializeComponent();
            this.Width = 1087;
            this.Height = 650;

            butik = new Butik();

            lagerSearchForm.ProductSelected += ProductSelected;
            lagerSearchForm.DataSource = new BindingList<Produkt>(butik.ProduktLst);
            lagerSearchForm.Flags = SearchForm.SearchFlags.SaldoKolumn;

            butikSearchForm.ProductSelected += ProductSelected;
            butikSearchForm.DataSource = new BindingList<Produkt>(butik.ProduktLst);
            butikSearchForm.Flags = SearchForm.SearchFlags.EndLagerfProdChecked | SearchForm.SearchFlags.SaldoKolumn | SearchForm.SearchFlags.PrisKolumn;

            statCompactSearchForm.DataSource = new BindingList<Produkt>(butik.ProduktLst);
            statCompactSearchForm.ProductSelected += CompactProductSelected;
            statCompactSearchForm.InputIsEmpty += InputIsEmpty;

            foreach (DataGridViewColumn col in statToppDgw.Columns)
                col.SortMode = DataGridViewColumnSortMode.NotSortable;
            foreach (DataGridViewColumn col in statTotDgw.Columns)
                col.SortMode = DataGridViewColumnSortMode.NotSortable;
        }
Exemplo n.º 2
0
        //-- Constructors
        public StoreForm()
        {
            InitializeComponent();

            butik = new Butik();

            lagerSearchForm.ProductSelected += ProductSelected;
            butikSearchForm.ProductSelected += ProductSelected;
            lagerSearchForm.DataSource = new BindingList<Produkt>(butik.ProduktLst);
            butikSearchForm.DataSource = new BindingList<Produkt>(butik.ProduktLst);
            butikSearchForm.flags = SearchForm.SearchFlags.EndLagerfProdChecked | SearchForm.SearchFlags.SaldoKolumn;
        }