Пример #1
0
        private void tsbMinutes_Click(object sender, EventArgs e)
        {
            string Caption = "Архив минутных значений группы " + currGroup;

            if (!updater.FindAndShow(Caption))
            {
                tableform = new frmTables(DataHost, PanelHost, "minutes", currGroup);
                updater.ChildForms().Add(tableform);
                tableform.Text      = Caption;
                tableform.MdiParent = PanelHost;
                tableform.Show();
            }
        }
Пример #2
0
 private void tsmiPrint_Click(object sender, EventArgs e)
 {
     if (updater != null)
     {
         string Caption = "Предварительный просмотр";
         updater.CloseAndRemove(Caption);
         printform = new frmPrintPreview();
         updater.ChildForms().Add(printform);
         printform.printDoc.QueryPageSettings += printDoc_QueryPageSettings;
         printform.printDoc.PrintPage         += printDoc_PrintPage;
         printform.Text      = Caption;
         printform.MdiParent = PanelHost;
         printform.Show();
     }
 }