Пример #1
0
        private void btnCzescGlownaDodajParametr_Click(object sender, EventArgs e)
        {
            this.Hide();
            this.Close();
            Parametr_czesci parametrczesc = new Parametr_czesci(this.database);

            parametrczesc.ShowDialog();
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
            this.Hide();
            Parametr_czesci parametrczesci = new Parametr_czesci(this.database);

            parametrczesci.ShowDialog();
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            DM_Parametr_czesci newi = new DM_Parametr_czesci();

            newi.Id_czesci     = Convert.ToInt32(comboBox1.SelectedValue);
            newi.Id_wlasciwosc = Convert.ToInt32(comboBox2.SelectedValue);
            newi.Wartosc       = textBox1.Text;

            this.database.DM_Parametr_czesci.Add(newi);
            this.database.SaveChanges();
            this.Close();
            this.Hide();
            Parametr_czesci parametrczesci = new Parametr_czesci(this.database);

            parametrczesci.ShowDialog();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            Parametr_czesci parametr = new Parametr_czesci(this.database);

            parametr.ShowDialog();
        }