public void BA3b() { Question.GetComponent <Text>().text += "\n\nФин: " + BA3.GetComponentInChildren <Text>().text; Question.GetComponent <Text>().text += "\n\n*Во взгляде путника сразу видно разочарование и он терят к вам какой-то бы ни было интерес.*"; BA3.gameObject.SetActive(false); SA2.gameObject.SetActive(false); EA1.gameObject.SetActive(true); EA1.GetComponentInChildren <Text>().text = "Конец диалога."; }
public void BA5b() { Question.GetComponent <Text>().text += "\n\nФин: " + BA5.GetComponentInChildren <Text>().text; Question.GetComponent <Text>().text += "\n\nПутник: Вам бы поучиться манерам, молодой человек. *Во взгляде путника сразу видно разочарование " + "и он терят к вам какой-то бы ни было интерес.*"; BA5.gameObject.SetActive(false); NA2.gameObject.SetActive(false); NA3.gameObject.SetActive(false); EA1.gameObject.SetActive(true); EA1.GetComponentInChildren <Text>().text = "Конец диалога."; }
public void FA6b() { Question.GetComponent <Text>().text += "\n\nФин: " + FA6.GetComponentInChildren <Text>().text; Question.GetComponent <Text>().text += "\n\nУвы, все твои ответы оказались неверными. Ты не дал нужных мне ответов, поэтому я ничем тебе не помогу." + "*Во взгляде путника сразу видно разочарование и он терят к вам какой-то бы ни было интерес.*"; TA3.gameObject.SetActive(false); FA5.gameObject.SetActive(false); FA6.gameObject.SetActive(false); EA1.gameObject.SetActive(true); EA1.GetComponentInChildren <Text>().text = "Конец диалога."; }
private void simpleButton1_Click(object sender, EventArgs e) { double SAY1, SOZ1, EA1; double turk1_d, turk1_y, mat1_d, mat1_y, sos1_d, sos1_y, fen1_d, fen1_y; turk1_d = double.Parse(textBox1.Text); turk1_y = double.Parse(textBox2.Text); mat1_d = double.Parse(textBox3.Text); mat1_y = double.Parse(textBox4.Text); sos1_d = double.Parse(textBox5.Text); sos1_y = double.Parse(textBox6.Text); fen1_d = double.Parse(textBox7.Text); fen1_y = double.Parse(textBox8.Text); SAY1 = Convert.ToDouble(126.789 + ((turk1_d - (turk1_y / 4)) * 0.686) + ((sos1_d - (sos1_y / 4)) * 0.521) + ((mat1_d - (mat1_y / 4)) * 2.488) + ((fen1_d - (fen1_y / 4)) * 2.085)); SOZ1 = Convert.ToDouble(118.703 + ((turk1_d - (turk1_y / 4)) * 2.566) + ((sos1_d - (sos1_y / 4)) * 2.04) + ((mat1_d - (mat1_y / 4)) * 0.837) + ((fen1_d - (fen1_y / 4)) * 0.667)); EA1 = Convert.ToDouble(120.705 + ((turk1_d - (turk1_y / 4)) * 2.016) + ((sos1_d - (sos1_y / 4)) * 0.86) + ((mat1_d - (mat1_y / 4)) * 2.466) + ((fen1_d - (fen1_y / 4)) * 0.655)); labelControl10.Text = SAY1.ToString(); labelControl11.Text = SOZ1.ToString(); labelControl12.Text = EA1.ToString(); SqlCommand cmd = new SqlCommand("Select * From OgrenciKayıt where numara='" + comboBox1.SelectedItem.ToString() + "'", con); con.Open(); SqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { textBox9.Text = comboBox1.SelectedItem.ToString(); textBox10.Text = dr["ad"].ToString(); textBox12.Text = dr["soyad"].ToString(); textBox11.Text = dr["alan"].ToString(); if (dr["alan"] == "Sayısal") { textBox13.Text = SAY1.ToString(); } else if (dr["alan"] == "Eşit Ağırlık") { textBox13.Text = EA1.ToString(); } else { textBox13.Text = SOZ1.ToString(); } } con.Close(); }