コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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;
         }
     }
 }