示例#1
0
 private void plotsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Plots == null)
     {
         Plots = new Plots(this);
         Plots.Show();
     }
     else
     {
         Plots.BringToFront();
     }
 }
示例#2
0
        public PlotEditor(Plots Parent, Plot Plot)
        {
            InitializeComponent();

            this.Parent = Parent;
            cmbLegend.Items.AddRange(Apex.EnumUtil.GetValuesCombo <Plot.Legend>());
            Layout = new LayoutEngine(this)
            {
                ClearOnProcess = true,
                Padding        = new Padding(6),
                Margin         = new Padding(6)
            };
            LoadPlot(Plot);
        }
示例#3
0
 public void ChildClosing(Form Child)
 {
     if (Child is Traces)
     {
         Traces = null;
     }
     else if (Child is Plots)
     {
         Plots = null;
     }
     else if (Child is NodeEditor)
     {
         NodeEditor = null;
     }
     else if (Child is StreamEditor)
     {
         StreamEditor = null;
     }
     else if (Child is LinkEditor)
     {
         LinkEditor = null;
     }
     else if (Child is DomainEditor)
     {
         DomainEditor = null;
     }
     else if (Child is NetworkPropertiesEditor)
     {
         NetworkPropertiesEditor = null;
     }
     else if (Child is DisplayPropertiesEditor)
     {
         DisplayPropertiesEditor = null;
     }
     else if (Child is Console)
     {
         Console = null;
     }
 }