private void WriteLinesFromNcFile(NcFile nc, TextBox tb)
 {
     tb.Clear();
     foreach (string line in nc.GetFileLines())
     {
         tb.AppendText(line + "\n");
     }
 }
        private void btChooseFile_Click(object sender, RoutedEventArgs e)
        {
            string choosenFile = ChoosenNcFileDialog();

            if (choosenFile != "")
            {
                ncFile = new NcFile(choosenFile);
                lbFileNameValue.Content = ncFile.GetFileName();
                lbFilePathValue.Content = ncFile.GetFullFilePath();
                WriteLinesFromNcFile(ncFile, tbFileLines);
            }
        }