private void додатиРесурсToolStripMenuItem_Click(object sender, EventArgs e) { var child = new AddMaterialForm(); child.MdiParent = this; child.Show(); }
private void addBtn_Click(object sender, EventArgs e) { var form = new AddMaterialForm(); form.ShowDialog(this); getMaterials(); }