public OutstationDialog(IDNP3Config config) { InitializeComponent(); this.config = config; this.linkConfigControl.IsMaster = false; comboBoxTemplate.DataSource = config.Templates.Select(kv => kv.Key).ToList(); }
public MasterNode(IDNP3Config config, MeasurementCache cache, IMaster master, ISimulatorNodeCallbacks callbacks, string alias) { this.config = config; this.cache = cache; this.master = master; this.callbacks = callbacks; this.alias = alias; this.callbacks.ChangeImage(IconIndex.Master); this.openAction = new NodeAction("Open", () => OpenForm()); }
public ChannelNode(IDNP3Config config, IChannel channel, ISimulatorNodeCallbacks callbacks, string alias) { this.config = config; this.channel = channel; this.callbacks = callbacks; this.alias = alias; this.callbacks.ChangeImage(IconIndex.Channel); this.masterFactory = new ActionNodeFactory("Add Master", cb => CreateMaster(cb)); this.outstationFactory = new ActionNodeFactory("Add Outstation", cb => CreateOutstation(cb)); this.channel.AddStateListener(state => callbacks.ChangeState(GetNodeState(state))); }
public OutstationNode(MeasurementCache cache, ProxyCommandHandler handler, EventedOutstationApplication application, IDNP3Config config, IOutstation outstation, ISimulatorNodeCallbacks callbacks, string alias) { this.cache = cache; this.handler = handler; this.application = application; this.config = config; this.outstation = outstation; this.callbacks = callbacks; this.alias = alias; this.callbacks.ChangeImage(IconIndex.Outstation); this.openAction = new NodeAction("Open", () => OpenForm()); }
public OutstationDialog(IDNP3Config config, IOutstationModule module) { InitializeComponent(); this.config = config; this.initialConfig = module.DefaultConfig; this.allowTemplateEdit = module.AllowTemplateEditing; this.textBoxID.Text = module.DefaultLogName; this.linkConfigControl.Configuration = initialConfig.link; if (allowTemplateEdit) { comboBoxTemplate.DataSource = config.Templates.Select(kv => kv.Key).ToList(); } else { groupBoxDatabase.Enabled = false; } }