예제 #1
0
        private void btAkcesoria_Click(object sender, EventArgs e)
        {
            SekcjaAkcesoriow akcesoria = new SekcjaAkcesoriow(this);

            akcesoria.Show(this);
            this.Enabled = false;
        }
 public DodajAkcesoria(SekcjaAkcesoriow p)
 {
     produkt = p;
     InitializeComponent();
     tbData.Text = DateTime.Now.Date.ToShortDateString();
     tbId.Text   = produkt.glowna.GetFreeIdAkcesoriow().ToString();
 }
예제 #3
0
 public SprzedajAkcesoria(SekcjaAkcesoriow a, int indeks)
 {
     produkt = a;
     InitializeComponent();
     temp             = produkt.glowna.listaAkcesoriow[indeks];
     tbNazwa.Text     = temp.Nazwa;
     nudIlosc.Maximum = temp.Ilosc;
     ind = indeks;
 }