Exemplo n.º 1
0
 private void TestBasicSCPForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (MWLScp.Started)
     {
         MWLScp.StopListening(int.Parse(_textBoxMWLScpPort.Text));
     }
 }
Exemplo n.º 2
0
 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);
     }
 }