コード例 #1
0
        private void типыГрузовToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var cargoForm = new CargoForm(ManagerFactoryResolver.ManagerFactory.CreateTypeOfCargoManager())
            {
                Owner = this
            };

            cargoForm.Show();
            this.Hide();
        }
コード例 #2
0
        private void button3_Click(object sender, System.EventArgs e)
        {
            var cargoForm = new CargoForm(ManagerFactoryResolver.ManagerFactory.CreateTypeOfCargoManager())
            {
                Owner = this
            };

            cargoForm.Show();
            this.Hide();
        }