Beispiel #1
0
        private void buttonTimeShiftAlllDownload_Click(object sender, EventArgs e)
        {
            string fileName = textTimeShiftSaveTo.Text;

            if (!OverWriteCheck(fileName))
            {
                return;
            }

            string param = $"-all";

            if (checkTimeShiftSubFolder.Checked)
            {
                param += " -d";
            }
            if (!checkTimeShiftOverwrite.Checked)
            {
                param += " -v";
            }
            if (!string.IsNullOrEmpty(fileName))
            {
                param += $" -f \"{fileName}\"";
            }

            var formExecute = new FormExecute();

            formExecute.Execute(this, GetterExeName, param);
        }
Beispiel #2
0
        private void buttonPastLogDownload_Click(object sender, EventArgs e)
        {
            string fileName = textSaveTo.Text;

            if (!OverWriteCheck(fileName))
            {
                return;
            }

            JkTsGetter.Channel channel = JkTsGetter.Channel.Channels[comboChannels.SelectedIndex];
            string             param   = $"jk{channel.jk} {dateStartDate.Value.ToString("yyyyMMdd")}{dateStartTime.Value.ToString("HHmmss")} {dateEndDate.Value.ToString("yyyyMMdd")}{dateEndTime.Value.ToString("HHmmss")}";

            if (!string.IsNullOrEmpty(fileName))
            {
                param += $" -f \"{fileName}\"";
            }
            if (checkBoxAlwaysAPI.Checked)
            {
                param += " -api";
            }

            var formExecute = new FormExecute();

            formExecute.Execute(this, GetterExeName, param);
        }
Beispiel #3
0
        private void buttonToolMerge_Click(object sender, EventArgs e)
        {
            string fileName = textToolSaveTo.Text;

            if (!OverWriteCheck(fileName))
            {
                return;
            }

            string param = $"{textToolXml1.Text} {textToolXml2.Text} -merge";

            if (!string.IsNullOrEmpty(fileName))
            {
                param += $" -f \"{fileName}\"";
            }

            var formExecute = new FormExecute();

            formExecute.Execute(this, GetterExeName, param);
        }
Beispiel #4
0
        private void buttonTimeShiftDownload_Click(object sender, EventArgs e)
        {
            string fileName = textTimeShiftSaveTo.Text;

            if (!OverWriteCheck(fileName))
            {
                return;
            }

            JkTsGetter.Channel channel = JkTsGetter.Channel.Channels[comboChannels.SelectedIndex];
            string             param   = $"jk{channel.jk} {dateTimeShiftDate.Value.ToString("yyyyMMdd")} -ts";

            if (!string.IsNullOrEmpty(fileName))
            {
                param += $" -f \"{fileName}\"";
            }

            var formExecute = new FormExecute();

            formExecute.Execute(this, GetterExeName, param);
        }
Beispiel #5
0
        private void buttonTimeShiftUpdateCache_Click(object sender, EventArgs e)
        {
            var formExecute = new FormExecute();

            formExecute.Execute(this, GetterExeName, "-all -cache");
        }
Beispiel #6
0
        private void buttonJkTsGetterAbout_Click(object sender, EventArgs e)
        {
            var formExecute = new FormExecute();

            formExecute.Execute(this, GetterExeName, "");
        }