- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
namespace pck_pkx
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("Выберите файлы для слияния!");
}
else
{
FileStream fs = new FileStream(textBox2.Text, FileMode.Open, FileAccess.Read);
BinaryReader br = new BinaryReader(fs);
BinaryWriter bw = new BinaryWriter(new FileStream(textBox1.Text, FileMode.Open, FileAccess.Write));
bw.BaseStream.Seek(0, SeekOrigin.End);
bw.Write(br.ReadBytes(Convert.ToInt32(fs.Length)));
MessageBox.Show("Успешно!");
}
}
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Angelica engine files|*.pck";
if (ofd.ShowDialog() == DialogResult.OK)
{
textBox1.Text = ofd.FileName;
}
}
private void button2_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Angelica engine files|*.pkx";
if (ofd.ShowDialog() == DialogResult.OK)
{
textBox2.Text = ofd.FileName;
}
}
}
}
Сука, до слез.
http://kn1fe-zone.ru/index.php?threads/pck-pkx.399/
kegdan 18.09.2014 04:33 # 0
DesmondHume 21.09.2014 13:47 # −1