private void button_Click(object sender, RoutedEventArgs e) { NexusWriter w = new NexusWriter(App.f); w.WriteToFile(); }