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); }
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); }
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); }
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); }
private void buttonTimeShiftUpdateCache_Click(object sender, EventArgs e) { var formExecute = new FormExecute(); formExecute.Execute(this, GetterExeName, "-all -cache"); }
private void buttonJkTsGetterAbout_Click(object sender, EventArgs e) { var formExecute = new FormExecute(); formExecute.Execute(this, GetterExeName, ""); }