Пример #1
0
 public FormCategory(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
     this.iconButtonEdytujKategorie.Click     += new System.EventHandler(this.EdytujKategorie);
     dataGridViewKategorie.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
 }
Пример #2
0
 public FormOrders(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
     PokazMojeZamowienia();
     dataGridViewZamowienia.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
 }
Пример #3
0
 public FormOrderFulfillment(FormMainMenu form)
 {
     InitializeComponent();
     _form       = form;
     _pelnaLista = PobierzPelnaListeZamowien();
     dataGridView1.DataSource          = _pelnaLista;
     dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
 }
Пример #4
0
 public FormOrderDetails(FormMainMenu form, int idZamowienia)
 {
     InitializeComponent();
     _form = form;
     listBox1.DataSource    = PobierzListeProduktow(idZamowienia);
     listBox1.DisplayMember = "_nazwa";
     listBox1.ValueMember   = "_nazwa";
 }
Пример #5
0
 public FormSeller(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
     UstawComboBox();
     UstawObrazki();
     dataGridViewProdukty.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
 }
Пример #6
0
 public FormProduct(int idProdukt, FormMainMenu form, FormShop formShop)
 {
     InitializeComponent();
     _form      = form;
     _formShop  = formShop;
     _idProdukt = idProdukt;
     ZaladujDane();
 }
Пример #7
0
 public FormCart(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
     iconButtonDodajZamowienie.Enabled   = false;
     iconButtonUsunZListy.Enabled        = false;
     iconButtonDodajZamowienie.IconColor = Color.FromArgb(0, 0, 0);
     iconButtonUsunZListy.IconColor      = Color.FromArgb(0, 0, 0);
 }
Пример #8
0
        public FormCart(List <int> products, FormMainMenu form)
        {
            InitializeComponent();
            _products = products;
            _form     = form;

            iconButtonDodajZamowienie.Enabled   = true;
            iconButtonUsunZListy.Enabled        = true;
            iconButtonDodajZamowienie.IconColor = Color.White;
            iconButtonUsunZListy.IconColor      = Color.White;

            WyswietlListe(_products);
        }
Пример #9
0
 public FormProfile(FormMainMenu form)
 {
     InitializeComponent();
     _form       = form;
     label2.Text = _form.login;
     if (_form.isAdmin == true)
     {
         iconButtonAdminPanel.Visible = true;
     }
     if (_form.isSeller == true)
     {
         iconButtonSellerPanel.Visible = true;
     }
 }
Пример #10
0
        public FormShop(FormMainMenu form)
        {
            InitializeComponent();

            tableLayoutShopPanel.AutoScroll = false;
            tableLayoutShopPanel.HorizontalScroll.Enabled = false;
            tableLayoutShopPanel.HorizontalScroll.Visible = false;
            tableLayoutShopPanel.HorizontalScroll.Maximum = 0;
            tableLayoutShopPanel.AutoScroll = true;
            TableLayoutRowStyleCollection styles = tableLayoutShopPanel.RowStyles;

            foreach (RowStyle style in styles)
            {
                // Set the row height to 20 pixels.
                style.SizeType = SizeType.Absolute;
                style.Height   = 200;
            }
            _form    = form;
            products = produktyWKoszyku;
            comboBoxFiltruj.SelectedIndex = 0;
            UstawProdukty();
        }
Пример #11
0
 public FormEditProfile(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
     UstawDane();
 }
Пример #12
0
 public FormRegistration(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
 }
Пример #13
0
 public FormAdmin(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
     dataGridViewUzytkownicy.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
 }
Пример #14
0
 public FormLogIn(FormMainMenu form)
 {
     InitializeComponent();
     _form = form;
 }