예제 #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;
 }