Exemple #1
0
        private void UpDate_PagesSeries(GW_DataFile oData)
        {
            foreach (TabPage oPage in Tab_Viewers.TabPages)
            {
                if (!(oPage.Equals(Tab_NewViewer)))
                {
                    Ctrl_WaveForm oWave = oPage.Controls[0] as Ctrl_WaveForm;

                    oWave.Set_DataFile(oData);
                    oWave.Refresh_Graphic();
                }
            }
        }
Exemple #2
0
        private void NewViewerPage(int PageIndex, string PageName, GraphWindowProperties WaveProps)
        {
            TabPage NewPage = new TabPage();

            if (PageName.Equals(""))
            {
                PageName = "Page " + Tab_Viewers.TabPages.Count.ToString();
            }
            NewPage.Text = PageName;
            NewPage.Tag  = NextViewerPageKeyId;
            NextViewerPageKeyId++;

            Ctrl_WaveForm oWaveDisp = new Ctrl_WaveForm();

            //oWaveDisp.Set_OpenFileVisible(false);
            oWaveDisp.OpenFileVisible = false;
            if (!(WaveProps == null))
            {
                oWaveDisp.Properties = WaveProps;
            }
            oWaveDisp.Left   = 0;
            oWaveDisp.Top    = 0;
            oWaveDisp.Width  = NewPage.Width;
            oWaveDisp.Height = NewPage.Height;
            oWaveDisp.Anchor = (AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom);

            NewPage.Controls.Add(oWaveDisp);

            if (PageIndex == -1)
            {
                PageIndex = Tab_Viewers.TabPages.Count - 1;
            }
            Tab_Viewers.TabPages.Insert(PageIndex, NewPage);
            Tab_Viewers.SelectedTab = NewPage;

            if (!(oConcatData == null))
            {
                oWaveDisp.Set_DataFile(oConcatData);
                oWaveDisp.Refresh_Graphic();
            }

            ViewerBook.bModified = true;
        }