Ejemplo n.º 1
0
        private void click_savefile(object sender, RoutedEventArgs e) // botón SAVE FILE
        {
            if (textbutton_fichero.Text == "")                        // si no se ha escrito un nombre
            {
                MessageBox.Show("It is mandatory giving a name for the file.");
            }
            else // si si se ha escrito
            {
                try
                {
                    //guardamos panel
                    nozzle.GuardarEstadoFichero(textbutton_fichero.Text, this.parametros[0], this.parametros[1], this.parametros[2], Convert.ToInt32(this.parametros[3]), this.parametros[4], this.listdt, this.listdens, this.listtemp, this.listvel, this.listpres);

                    //cerramos form
                    this.Close();
                }
                catch
                {
                    MessageBox.Show("Something went wrong. Try again.");
                }
            }
        }