private void button1_Click(object sender, EventArgs e) { ServiceConnection.Service.InsertCar(Name.Text, Convert.ToInt32(Year.Value), Date.Value); FlowList flowList = new FlowList(); flowList.CarsList(_mainForm); Close(); }
private void списокАвтомобилейToolStripMenuItem_Click(object sender, EventArgs e) { flowList.CarsList(this); }