2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Windows.Forms;
10 namespace SeciUserInterface.Dialogs.Graphs
18 InitializeComponent();
23 if (Seci.Managers.BlockMgr.Blocks != null)
25 for (
int i = 0; i < Seci.Managers.BlockMgr.Blocks.Count; i++)
27 if (Seci.Managers.BlockMgr.Blocks[i].BlockEnabled)
29 comBlocks.Items.Add(Seci.Managers.BlockMgr.Blocks[i].BlockName);
31 if (!String.IsNullOrEmpty(Seci.Managers.BlockMgr.Blocks[i].WriteControl))
33 comBlocks.Items.Add(Seci.Managers.BlockMgr.Blocks[i].BlockName +
" (Setpoint)");
43 comBlocks.SelectedItem = Plot.BlockName;
44 chkUseY2.Checked = Plot.UseY2;
48 chkUseY2.Checked =
false;
54 if (comBlocks.SelectedIndex != -1)
58 DialogResult = DialogResult.OK;
63 MessageBox.Show(
"Please select a Block.",
"", MessageBoxButtons.OK, MessageBoxIcon.Warning);
Lightweight plot definition class.
void btnOK_Click(object sender, EventArgs e)
Seci.Definitions.PlotDefinition Plot
void AddEditPlot_Load(object sender, EventArgs e)