Example #1
0
 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);
     }
 }
Example #2
0
 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;
     }
 }
Example #3
0
        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);
            }
        }
Example #4
0
 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);
     }
 }