Beispiel #1
0
        private void btnSendData_Click(object sender, EventArgs e)
        {
            if (!GetCheckedState())
            {
                MessageBox.Show("Please select at least 1 Location", "Warning", MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
                SetEnableComponent(true);
                return;
            }

            try
            {
                SetEnableComponent(false);
                string input = GetLocationSelected();
                inputSplit = input.Split(',');
                CreateRecordFile(inputSplit);
                CreateZipFile();
                SendAndReceiveDataResult sendAndReceiveDataResult = new SendAndReceiveDataResult(sendDataMode);
                sendAndReceiveDataResult.ShowDialog();
                this.Dispose();
            }
            catch (Exception ex)
            {
                SetEnableComponent(true);
            }
        }
Beispiel #2
0
        private void btnReceiveData_Click(object sender, EventArgs e)
        {
            SetEnableComponent(false);
            SendAndReceiveDataResult sendData = new SendAndReceiveDataResult(mode);

            sendData.ShowDialog();
            SetEnableComponent(true);
            this.Show();
        }