Exemple #1
0
        private void miTrends_Click(object sender, EventArgs e)
        {
            string Caption = "Просмотр графиков группы 1";

            if (!FindAndShow(Caption))
            {
                frmTrends form = new frmTrends(Host, this);
                childforms.Add(form);
                form.Text      = Caption;
                form.MdiParent = this;
                form.Show();
                form.UpdateView();
            }
        }
Exemple #2
0
 private void miTrend_Click(object sender, EventArgs e)
 {
     if (updater != null)
     {
         int[] items = (int[])miTrend.Tag;
         if (items.Length == 2)
         {
             int    group   = items[0];
             int    place   = items[1];
             string Caption = "Просмотр графиков группы " + group;
             updater.CloseAndRemove(Caption);
             trendform = new frmTrends(updater.GetHost(), PanelHost, group, place);
             updater.ChildForms().Add(trendform);
             trendform.Text      = Caption;
             trendform.MdiParent = PanelHost;
             trendform.Show();
             trendform.UpdateView();
         }
     }
 }