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); } } }
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; } } }