Automatak.Simulator.DNP3.DNP3SimulatorPlugin.ISimulatorPlugin C# (CSharp) Method

ISimulatorPlugin() private method

private ISimulatorPlugin ( ISimulatorNodeCallbacks callbacks ) : ISimulatorNode
callbacks ISimulatorNodeCallbacks
return ISimulatorNode
        ISimulatorNode ISimulatorPlugin.Create(ISimulatorNodeCallbacks callbacks)
        {
            using (var dialog = new Components.ChannelDialog())
            {
                dialog.ShowDialog();
                if (dialog.DialogResult == DialogResult.OK)
                {
                    var channel = dialog.ChannelAction.Invoke(manager);
                    return new ChannelNode(config, channel, callbacks, dialog.SelectedAlias);
                }
                else
                {
                    return null;
                }
            }
        }