private void записьToolStripMenuItem_Click(object sender, EventArgs e) { if (ZapisView == null) { ZapisView = new ZapisView(this, dataSet, true); ZapisView.MdiParent = this; ZapisView.Show(); } else { //ZapisView.Focus(); } }
public void null_child(ViewType viewType) { switch (viewType) { case ViewType.Ispolnitel: IspolnitelView = null; break; case ViewType.Janr: JanrView = null; break; case ViewType.Sotrudnik: SotrudnikView = null; break; default: ZapisView = null; break; } }