private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
{
//向前
String t1 = textBox1.Text.Trim();
StringBuilder t2 = new StringBuilder();
t2.Length = 0;
t2.Append(t1);
int length = Convert.ToInt32(textBox2.Text.Trim());
for (; t2.Length < length; t2.Insert(0, "0")) ;
String t1 = textBox1.Text.Trim();
StringBuilder t2 = new StringBuilder();
t2.Length = 0;
t2.Append(t1);
int length = Convert.ToInt32(textBox2.Text.Trim());
for (; t2.Length < length; t2.Insert(0, "0")) ;
textBox3.Text = t2.ToString();
}
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
{
//向后
String t1 = textBox1.Text.Trim();
StringBuilder t2 = new StringBuilder();
t2.Length = 0;
t2.Append(t1);
int length = Convert.ToInt32(textBox2.Text.Trim());
for (; t2.Length < length; t2.Insert(t2.Length, "0")) ;
String t1 = textBox1.Text.Trim();
StringBuilder t2 = new StringBuilder();
t2.Length = 0;
t2.Append(t1);
int length = Convert.ToInt32(textBox2.Text.Trim());
for (; t2.Length < length; t2.Insert(t2.Length, "0")) ;
textBox3.Text = t2.ToString();
}
}