private void btnRead_Click(object sender, RoutedEventArgs e) { try { //kirjoitetaan mitatut tiedostoon mitatut = MittausData.ReadFromFile(txtFileName.Text); ApplyChanges(); MessageBox.Show("Tiedot haettu onnistuneesti tiedostosta " + txtFileName.Text); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnRead_Click(object sender, RoutedEventArgs e) { //haetaan käyttäjän antamasta tiedostosta mitatut arvot try { measured = MittausData.ReadFromFile(txtFileName.Text); ApplyChanges(); MessageBox.Show("Tiedot haettu onnistuneesti tiedostostoa " + txtFileName.Text); } catch (Exception ex) { MessageBox.Show(ex.Message); } }