private void btnGetFromFile_Click(object sender, RoutedEventArgs e) { //luetaan datat käyttäjän antamasta tiedostosta try { mitatut = null; mitatut = MittausData.ReadDataFromFile(txtFileName.Text); ApplyChanges(); MessageBox.Show("Tiedot luettu onnistuneesti tiedostosta " + txtFileName.Text); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnFromFile_Click(object sender, RoutedEventArgs e) { try { mitatut = null; mitatut = MittausData.ReadDataFromFile(txtFileName.Text); ApplyChanges(); MessageBox.Show("Tiedot Luettu upupupupu~"); } catch (Exception) { throw; } }
private void btnReadFromFile_Click(object sender, RoutedEventArgs e) { //Luetaan data käyttäjän antamasta tiedostosta try { mitatut = null; mitatut = MittausData.ReadDataFromFile(txtFileName.Text); ApplyChanges(); MessageBox.Show("Data read from " + txtFileName.Text); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnLoadData_Click(object sender, RoutedEventArgs e) { // Luetaan data käyttäjän antamasta tiedostosta // kutsu BL:N tallennusmetodia try { mitatut = null; mitatut = MittausData.ReadDataFromFile(txtFileName.Text); ApplyChanges(); MessageBox.Show("Tiedot luettu tiedostosta " + txtFileName.Text); } catch (Exception ex) { MessageBox.Show(ex.Message); } }