private void BUT_tlogfile_Click(object sender, EventArgs e) { String fileName = GetFileName("Tlog (*.tlog)|*.tlog", txt_tlog); if (fileName != null) { txt_tlog.Text = fileName; } }