private void button1_Click(object sender, EventArgs e) { //label1.Text = richTextBox1.Text; temp = richTextBox1.Text; //if (temp.Equals("")) //{ // if (mf) // MessageBox.Show("Please enter the captions you want to display.!", "Tips"); // else // MessageBox.Show("请输入需要显示的字幕!", "提示"); // return; //} spd = (int)numericUpDown1.Value; speed = (int)numericUpDown2.Value; double tan = (double)slider1.Value / 100; if (checkBox1.Checked) { ft = new Form_BText(languageFile); ft.SetInitText(f, c, bc, spd, temp, speed, tan, true); ft.Show(); formList.Add(ft); } else { Form_RunText bf = new Form_RunText(languageFile); if (checkBox3.Checked) { bf.SetInitText(f, c, bc, spd, temp, speed, tan, false, true); } else { bf.SetInitText(f, c, bc, spd, temp, speed, tan, false, false); } bf.Show(); } if (temp.Contains("\n")) { temp = temp.Replace("\n", "*"); } settingFile.WriteString("SUBSET", "TEXTNAME", temp); settingFile.WriteInteger("SUBSET", "MOVETIME", spd); settingFile.WriteInteger("SUBSET", "MOVESPEED", speed); settingFile.WriteInteger("SUBSET", "MOVETANS", slider1.Value); settingFile.WriteInteger("SUBSET", "FONTC", colorDropDownList1.SelectedIndex); }
private void Form_BText_Load(object sender, EventArgs e) { //Console.WriteLine("1223"); //label_text.Text = text; //Lable_Resize(); if (tans_Flag) { timer1.Enabled = true; timer1.Stop(); bf.SetInitText(f, c, bc, Interval, text, speed, Transp, tans_Flag, false); bf.Location = this.Location; bf.Show(); } //Console.WriteLine("333333"); //timer1.Enabled = true; //timer1.Interval = 10; //timer1.Start(); }