/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="owner">The owner object.</param>
        /// <param name="plotNum">The number of plot on this window.</param>
        /// <param name="redrawInt">The time span to redraw.</param>
        /// <param name="setting">the setting object.</param>
        public TracerConfigurationPage(TracerWindow owner, int plotNum, double redrawInt, YAxisSettings setting)
        {
            InitializeComponent();
            m_owner = owner;
            m_plotNum = plotNum;
            m_redrawInterval = redrawInt;
            m_settings = setting;

            numberTextBox.Text = plotNum.ToString();
            intervalTextBox.Text = redrawInt.ToString();

            YMaxCheckBox.Checked = setting.IsAutoMaxY;
            YMinCheckBox.Checked = setting.IsAutoMinY;
            Y2MaxCheckBox.Checked = setting.IsAutoMaxY2;
            Y2MinCheckBox.Checked = setting.IsAutoMinY2;

            YMaxTextBox.Text = setting.YMax.ToString();
            YMinTextBox.Text = setting.YMin.ToString();
            Y2MaxTextBox.Text = setting.Y2Max.ToString();
            Y2MinTextBox.Text = setting.Y2Min.ToString();

            YMaxTextBox.Enabled = !setting.IsAutoMaxY;
            YMinTextBox.Enabled = !setting.IsAutoMinY;
            Y2MaxTextBox.Enabled = !setting.IsAutoMaxY2;
            Y2MinTextBox.Enabled = !setting.IsAutoMinY2;
        }
Example #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public SaveTraceDialog(TracerWindow owner)
 {
     m_owner = owner;
     InitializeComponent();
     dirTextBox.Text = owner.DataManager.GetSimulationResultSaveDirectory();
     m_start = 0.0;
     m_end = owner.DataManager.GetCurrentSimulationTime();
     endTextBox.Text = m_end.ToString();
     double dummy = 0.0;
     if (double.TryParse(endTextBox.Text, out dummy))
         m_end = dummy;
     m_simTime = m_end;
 }
Example #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="owner">The owner object.</param>
 public LoggerWindow(TracerWindow owner)
 {
     InitializeComponent();
     m_owner = owner;
     loggerDataGrid.ContextMenuStrip = gridContextMenuStrip;
 }
Example #4
0
        /// <summary>
        /// Constructor for TraceWindow.
        /// </summary>
        public TraceWindow(TracerWindow control)
        {
            m_owner = control;
            this.HideOnClose = false;
            InitializeComponent();

            m_zCnt = new ZedGraphControl();
            m_zCnt.Dock = DockStyle.Fill;
            m_zCnt.GraphPane.Title.Text = "";
            m_zCnt.GraphPane.XAxis.Title.Text = "Time(sec)";
            m_zCnt.GraphPane.YAxis.Scale.Format = m_owner.DataManager.DisplayStringFormat;
            m_zCnt.GraphPane.Y2Axis.Scale.Format = m_owner.DataManager.DisplayStringFormat;
            m_zCnt.GraphPane.YAxis.Title.Text = "";
            m_zCnt.GraphPane.Legend.IsVisible = false;
            m_zCnt.GraphPane.XAxis.Scale.Max = 10;
            m_zCnt.GraphPane.XAxis.Scale.MaxAuto = false;
            m_zCnt.GraphPane.XAxis.Scale.Min = 0;
            m_zCnt.IsEnableWheelZoom = false;
            m_zCnt.IsEnableHPan = false;
            m_zCnt.IsEnableVPan = false;
            m_zCnt.ZoomEvent += new ZedGraphControl.ZoomEventHandler(ZcntZoomEvent);
            m_zCnt.ContextMenuBuilder += new ZedGraphControl.ContextMenuBuilderEventHandler(ZedControlContextMenuBuilder);
            m_zCnt.GraphPane.Margin.Top = 35.0f;
            m_zCnt.GraphPane.YAxis.MajorGrid.IsVisible = true;
            m_zCnt.GraphPane.XAxis.MinorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.XAxis.MajorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.YAxis.MinorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.YAxis.MajorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.Chart.Border.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.YAxis.MajorGrid.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.Fill = new Fill(Color.White, Color.LightGray, 90.0f);

            this.m_AxisSetting = new YAxisSettings();

            tableLayoutPanel1.Controls.Add(m_zCnt, 0, 0);
            m_zCnt.AxisChange();
            m_zCnt.Refresh();

            this.ContentType = DockContentType.GRAPH;
            this.HideOnClose = false;
        }
Example #5
0
        /// <summary>
        /// Constructors
        /// </summary>
        /// <param name="control">Owner object</param>
        public PlotterWindow(TracerWindow control)
        {
            m_owner = control;
            this.HideOnClose = false;
            InitializeComponent();

            m_zCnt = new ZedGraphControl();
            m_zCnt.Dock = DockStyle.Fill;
            m_zCnt.GraphPane.Title.Text = "";
            m_zCnt.GraphPane.XAxis.Title.IsVisible = false;
            m_zCnt.GraphPane.YAxis.Title.IsVisible = false;
            m_zCnt.GraphPane.Legend.IsVisible = false;
            m_zCnt.GraphPane.XAxis.Scale.Max = 100;
            m_zCnt.GraphPane.XAxis.Scale.MaxAuto = true;
            m_zCnt.GraphPane.YAxis.Scale.MaxAuto = true;
            m_zCnt.GraphPane.XAxis.Scale.Min = 0;
            m_zCnt.GraphPane.Margin.Top = 35.0f;
            m_zCnt.GraphPane.YAxis.MajorGrid.IsVisible = true;
            m_zCnt.GraphPane.XAxis.MinorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.XAxis.MajorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.YAxis.MinorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.YAxis.MajorTic.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.Chart.Border.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.YAxis.MajorGrid.Color = Color.FromArgb(200, 200, 200);
            m_zCnt.GraphPane.Fill = new Fill(Color.White, Color.LightGray, 90.0f);

            plotTableLayoutPanel.Controls.Add(m_zCnt, 0, 0);
            m_zCnt.AxisChange();
            m_zCnt.Refresh();

            displaySettingDataGrid.ContextMenuStrip = gridContextMenuStrip;
        }