private void btCodeSpec_Click(object sender, EventArgs e) { DirectionOfPreparation selectCode = new DirectionOfPreparation(true); //selectCode.Owner = this; //selectCode.ShowDialog(); //tbCodeSpec.Text = codeSpec; selectCode.FormClosing += SelectCode_FormClosing; selectCode.Show(); }
private void направлениеПодготовкиToolStripMenuItem_Click(object sender, EventArgs e) { DirectionOfPreparation directionOfPreparation = new DirectionOfPreparation(); directionOfPreparation.Show(); }
private void SelectCode_FormClosing(object sender, FormClosingEventArgs e) { DirectionOfPreparation selectCode = (DirectionOfPreparation)sender; tbCodeSpec.Text = selectCode.selectDirectionOfPreparation; }