Example #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();
        }
Example #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();
        }
Example #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();
 }
Example #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();
        }