private void llCar_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var container = WindsorConfiguration.Container; var carForm = new CarForm(container.Resolve <IDealerService>()); carForm.ShowDialog(_violation.Car); }
private void CarBtn_Click(object sender, EventArgs e) { CarForm cf = new CarForm() { Text = this.CarBtn.Text }; cf.ShowDialog(); }
private ToolStripMenuItem CreateNewCar() { ToolStripMenuItem item = CreateItem("Покупка автомобиля"); item.Click += delegate { var container = WindsorConfiguration.Container; var carForm = new CarForm(container.Resolve <IDealerService>()); if (carForm.ShowDialog(new Car()) == DialogResult.OK) { _mainStatus.Set(_mainStatus.Get()); } }; return(item); }
private void автомобилиToolStripMenuItem_Click(object sender, EventArgs e) { var form = new CarForm(); form.ShowDialog(this); }