Exemplo n.º 1
0
        public void Save()
        {
            var fileNames = fileOpenControl1_fiels.FilePathes;

            ObsFilePeriodDivider obsFilePeriodDivider = new ObsFilePeriodDivider(OutputDirectory, periodSpanMinutes, subDirectory, NetName);

            var result = obsFilePeriodDivider.Run(fileNames);

            this.Result = result;

            StringBuilder sb = new StringBuilder();

            foreach (var item in result)
            {
                sb.AppendLine();
                sb.AppendLine(item.Key);
                sb.AppendLine(
                    Geo.Utils.StringUtil.ToString(item.Value, "\r\n"));
            }
            ;

            Geo.Utils.FormUtil.ShowOkAndOpenDirectory(OutputDirectory);
        }
Exemplo n.º 2
0
        private void button_run_Click(object sender, EventArgs e)
        {
            var fileNames = fileOpenControl1_fiels.FilePathes;

            ObsFilePeriodDivider obsFilePeriodDivider = new ObsFilePeriodDivider(OutputDirectory, periodSpanMinutes, subDirectory, NetName);

            obsFilePeriodDivider.IsMoveTo = isMoveTo;
            var result = obsFilePeriodDivider.Run(fileNames);

            this.Result = result;
            StringBuilder sb = new StringBuilder();

            foreach (var item in result)
            {
                sb.AppendLine();
                sb.AppendLine(item.Key);
                sb.AppendLine(
                    Geo.Utils.StringUtil.ToString(item.Value, "\r\n"));
            }

            this.richTextBoxControl_result.Text = sb.ToString();
            Geo.Utils.FormUtil.ShowOkAndOpenDirectory(OutputDirectory);
        }