コード例 #1
0
        private void llCar_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var container = WindsorConfiguration.Container;

            var carForm = new CarForm(container.Resolve <IDealerService>());

            carForm.ShowDialog(_violation.Car);
        }
コード例 #2
0
        private void CarBtn_Click(object sender, EventArgs e)
        {
            CarForm cf = new CarForm()
            {
                Text = this.CarBtn.Text
            };

            cf.ShowDialog();
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        private void автомобилиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new CarForm();

            form.ShowDialog(this);
        }