Пример #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));
            }
        }
Пример #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));
            }
        }
Пример #3
0
 private void buttonStorageScpStartStop_Click(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.StartListening(_textBoxStorageScpAeTitle.Text,
                                   int.Parse(_textBoxStorageScpPort.Text));
     }
 }