private void TestBasicSCPForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (MWLScp.Started)
     {
         MWLScp.StopListening(int.Parse(_textBoxMWLScpPort.Text));
     }
 }
 private void _buttonMWScpStartStop_Click(object sender, EventArgs e)
 {
     if (MWLScp.Started)
     {
         _buttonMWScpStartStop.Text = "Start";
         MWLScp.StopListening(int.Parse(_textBoxMWLScpPort.Text));
     }
     else
     {
         _buttonMWScpStartStop.Text = "Stop";
         MWLScp.StartListening(_textBoxMWLScpAeTitle.Text,
                               int.Parse(_textBoxMWLScpPort.Text),
                               SharedConfig.SharedConfig.Default.MWLResponseBufferCapacity,
                               SharedConfig.SharedConfig.Default.MWLMaxResponsesToSend);
     }
 }