private void SaveDat() { SaveFileDialog sfd = new SaveFileDialog(); sfd.DefaultExt = ".dat"; sfd.FileName = Path.GetFileNameWithoutExtension(FileName) + "_NEW.dat"; if (sfd.ShowDialog() == true) { data.Save(sfd.FileName); } }
private void SaveDat() { var sfd = new SaveFileDialog { DefaultExt = ".dat", FileName = Path.GetFileNameWithoutExtension(FileName) + "_NEW.dat" }; if (sfd.ShowDialog() == true) { _wrapper.Save(sfd.FileName); } }