public void OutputClicked(RouterOutputControl output)
 {
     output.Selected = !output.Selected;
     if (output.Selected)
     {
         selectedOutputs.Add(output.Output);
     }
     else
     {
         selectedOutputs.RemoveAll(o => (o == output.Output));
     }
 }
 private void loadOutputs()
 {
     outputControls.Clear();
     flowLayoutPanel2.Controls.Clear();
     if (router == null)
     {
         return;
     }
     foreach (RouterOutput output in router.Outputs)
     {
         RouterOutputControl control = new RouterOutputControl(output, this);
         flowLayoutPanel2.Controls.Add(control);
         outputControls.Add(output, control);
     }
 }