private void жанрToolStripMenuItem_Click(object sender, EventArgs e) { if (JanrView == null) { JanrView = new JanrView(this, dataSet, true); JanrView.MdiParent = this; JanrView.Show(); } else { //JanrView.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; } }