public MainWindow() { InitializeComponent(); data0 = (DATA0)this.Resources["data0"]; info0 = (INFO0)this.Resources["info0"]; info2 = new INFO2(); }
private void SaveButtonINFO_Click(object sender, RoutedEventArgs e) { SaveFileDialog dialog = new SaveFileDialog { DefaultExt = ".bin", FileName = "INFO0", Filter = "FETH Patch Binary (INFO0.bin)|*.bin" }; if (dialog.ShowDialog() == true) { INFO2 info2 = new INFO2(info0.Count); info0.Write(dialog.FileName); info2.Write(Path.GetDirectoryName(dialog.FileName) + "/INFO2.bin"); } }