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

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

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

            vehicleFrom.MdiParent = this.ParentForm;
            vehicleFrom.Show();
        }
示例#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();
         }
     }
 }