Exemplo n.º 1
0
        private void ButtonStorageScpStartStopClick(object sender, EventArgs e)
        {
            if (StorageScp.Started)
            {
                _buttonStorageScpStartStop.Text = "Start";
                StorageScp.StopListening(int.Parse(_textBoxStorageScpPort.Text));
            }
            else
            {
                _buttonStorageScpStartStop.Text = "Stop";

                StorageScp.StorageLocation = _textBoxStorageScpStorageLocation.Text;
                StorageScp.Bitbucket       = _checkBoxStorageScpBitbucket.Checked;
                StorageScp.List            = _checkBoxStorageScpList.Checked;

                StorageScp.J2KLossless  = _checkBoxStorageScpJ2KLossless.Checked;
                StorageScp.J2KLossy     = _checkBoxStorageScpJ2KLossy.Checked;
                StorageScp.JpegLossless = _checkBoxStorageScpJpegLossless.Checked;
                StorageScp.JpegLossy    = _checkBoxStorageScpJpegLossy.Checked;
                StorageScp.Rle          = _checkBoxStorageScpRLE.Checked;

                StorageScp.StartListening(_textBoxStorageScpAeTitle.Text,
                                          int.Parse(_textBoxStorageScpPort.Text));
            }
        }
Exemplo n.º 2
0
        private void SamplesFormClosing(object sender, CancelEventArgs e)
        {
            // Gotta stop our logging thread
            _timer.Stop();

            if (StorageScp.Started)
            {
                StorageScp.StopListening(int.Parse(_textBoxStorageScpPort.Text));
            }
        }