DARKMED

 

http://sniperelitev2mods.blogspot.com/

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
OpenFileDialog ofd = new OpenFileDialog();
private void button1_Click(object sender, EventArgs e)
{
ofd.ShowDialog();
progressBar1.Value = 100;
}

private void button2_Click(object sender, EventArgs e)
{
progressBar1.Value = 100;
progressBar1.Value = 0;
BinaryWriter bw = new BinaryWriter(File.OpenWrite(ofd.FileName));
for (int i = 0x1C0; i <= 0x1CC; i++)
{
bw.BaseStream.Position = i;
bw.Write(0x03);

}
bw.Close();
}

private void button3_Click(object sender, EventArgs e)
{
progressBar1.Value = 100;
BinaryWriter bw = new BinaryWriter(File.OpenWrite(ofd.FileName));
for (int i = 0x1C0; i <= 0x1CC; i++)
{
bw.BaseStream.Position = i;
bw.Write(0x03);

}
bw.BaseStream.Position = 0x1CC;
bw.Write(0x08);
bw.Close();
}

private void Form1_Load(object sender, EventArgs e)
{

}
}
}