Ejemplo n.º 1
0
        private void EditingBrandAndModel_Load(object sender, EventArgs e)
        {
            BrandsAndModels f = (BrandsAndModels)this.Owner;

            id = f.ID_brd_mdl.ToString();
            comboBox1.SelectedItem = f.Title_brand.ToString();
            comboBox2.SelectedItem = f.Title_model.ToString();
        }
Ejemplo n.º 2
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.Text != "" && comboBox2.Text != "")
     {
         Edit();
         BrandsAndModels f = (BrandsAndModels)this.Owner;
         f.LoadAll();
     }
     else
     {
         MessageBox.Show("Заполните все поля!.", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        private void МаркиИМоделиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BrandsAndModels f = new BrandsAndModels();

            f.ShowDialog();
        }
        private void Button1_Click(object sender, EventArgs e)
        {
            BrandsAndModels f = new BrandsAndModels();

            f.ShowDialog();
        }