private void btnStartConvertingLog_Click(object sender, RoutedEventArgs e)
        {
            LogConverter converter = new LogConverter();

            converter.LoadCommands(@"C:\Users\kiril\source\repos\modbus-logs-parser\modbus-logs-parser\commands.vcb"); //домашнее задание - убрать прямые ссылки
            converter.LoadExceptions(@"C:\Users\kiril\source\repos\modbus-logs-parser\modbus-logs-parser\exceptions.vcb");
            List <LogEntry> logs = converter.ParseLog(logWithData.Text);

            logParseResult.Text = converter.ConverToTXT(logs);
        }
        private void btnSaveReport_Click(object sender, RoutedEventArgs e) //save file
        {
            LogConverter   converter      = new LogConverter();
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*";
            if (saveFileDialog.ShowDialog() == true)
            {
                File.WriteAllText(saveFileDialog.FileName, logParseResult.Text);
            }
        }