Commit 4d71c6fa authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@57066 954022d7-b5bf-4e40-9824-e11837661b57
parent b68aae05
......@@ -32,6 +32,7 @@
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
......@@ -63,11 +64,22 @@
//
this.openFileDialog1.FileName = "openFileDialog1";
//
// button2
//
this.button2.Location = new System.Drawing.Point(682, 458);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 3;
this.button2.Text = "button2";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(769, 464);
this.ClientSize = new System.Drawing.Size(769, 490);
this.Controls.Add(this.button2);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);
......@@ -84,6 +96,7 @@
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Button button2;
}
}
......@@ -121,5 +121,13 @@ namespace WindowsFormsApplication1
textBox2.Text = Convert.ToBase64String(bytes, Base64FormattingOptions.None);
}
}
private void button2_Click(object sender, EventArgs e)
{
byte[] resBinary = Convert.FromBase64String(textBox2.Text);
StreamWriter oW = new StreamWriter("E:\\123.bin");
oW.BaseStream.Write(resBinary, 0, resBinary.Length);
oW.Close();
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment