Example #1
0
 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();
     }
 }
Example #2
0
        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;
            }
        }