Exemple #1
0
        private void dodajPojazdToolStripMenuItem_Click(object sender, EventArgs e)
        {
            VehicleFrom vehicleFrom = new VehicleFrom();

            vehicleFrom.MdiParent = this;
            vehicleFrom.Show();
        }
Exemple #2
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            VehicleFrom vehicleFrom = new VehicleFrom();

            vehicleFrom.MdiParent = this;
            vehicleFrom.Show();
        }
Exemple #3
0
        private void buttonDodaj_Click(object sender, EventArgs e)
        {
            VehicleFrom vehicleFrom = new VehicleFrom();

            vehicleFrom.MdiParent = this.ParentForm;
            vehicleFrom.Show();
        }
Exemple #4
0
 private void buttonEdytuj_Click(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in this.dataGridView1.SelectedRows)
     {
         Vehicle vehicle = row.DataBoundItem as Vehicle;
         if (vehicle != null)
         {
             VehicleFrom vehicleFrom = new VehicleFrom(vehicle);
             vehicleFrom.MdiParent = this.ParentForm;
             vehicleFrom.Show();
         }
     }
 }