public SerialPortProxyServerDocumentControl(SerialPortProxyServerDocument document)
 {
     _document = document;
     InitializeComponent();
     serialPortConfigurationControlClient.Config = _document.ClientPort;
     serialPortConfigurationControlServer.Config = _document.ServerPort;
     layerEditorControl.Layers = _document.Layers;
 }
 public SerialPortProxyServerDocumentControl(SerialPortProxyServerDocument document)
 {
     _document = document;
     InitializeComponent();
     serialPortConfigurationControlClient.Config = _document.ClientPort;
     serialPortConfigurationControlServer.Config = _document.ServerPort;
     layerEditorControl.Layers = _document.Layers;
 }