Ejemplo n.º 1
0
        public void SaveFile(string file)
        {
            _path = file;
            PatchUOFileWriter writer = new PatchUOFileWriter(File.Create(_path));

            writer.Write((int)0);
            writer.WritePatches(_patches);
            writer.Close();
        }
Ejemplo n.º 2
0
        public void SaveFile()
        {
            if (_path == string.Empty)
            {
                SaveFileDialog dialog = new SaveFileDialog();
                if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    _path = dialog.FileName;
                }
                else
                {
                    return;
                }
            }

            PatchUOFileWriter writer = new PatchUOFileWriter(File.Create(_path));

            writer.WritePatches(_patches);
            writer.Close();
        }
Ejemplo n.º 3
0
 public void SaveFile(string file)
 {
     _path = file;
     PatchUOFileWriter writer = new PatchUOFileWriter(File.Create(_path));
     writer.Write((int)0);
     writer.WritePatches(_patches);
     writer.Close();
 }
Ejemplo n.º 4
0
        public void SaveFile()
        {
            if( _path == string.Empty )
            {
                SaveFileDialog dialog = new SaveFileDialog();
                if( dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK )
                    _path = dialog.FileName;
                else
                    return;
            }

            PatchUOFileWriter writer = new PatchUOFileWriter(File.Create(_path));
            writer.WritePatches(_patches);
            writer.Close();
        }