private void button3_Click(object sender, EventArgs e) { French_Exercises FE = new French_Exercises(this, this.Top, this.Left); this.Hide(); FE.Show(); }
public French_EX_RusFr(French_Exercises FE, int a, int b) { InitializeComponent(); this.MaximizeBox = false; CloseFlag = 1; _FE = FE; this.label5.Visible = false; this.Top = a; this.Left = b; toolTip1.SetToolTip(button1, "Назад"); toolTip2.SetToolTip(button2, "Проверить"); toolTip3.SetToolTip(button3, "Следующее слово"); this.tableTableAdapter.Fill(french_DataBaseDataSet.Table); i = this.french_DataBaseDataSet.Table.Rows.Count; String s1 = i.ToString(); label2.Text = s1; Random rand = new Random(); int k = 0; if (i != 0) { j = rand.Next(i); k = j + 1; } String s2 = k.ToString(); label1.Text = s2; if (i == 0) { this.label4.Text = ""; this.label5.Text = ""; } if (i != 0) { label4.Text = this.french_DataBaseDataSet.Table.Rows[j][2].ToString(); label5.Text = this.french_DataBaseDataSet.Table.Rows[j][1].ToString(); } }