private void button2_Click(object sender, EventArgs e) { F = 0; U11 = 0; U22 = 0; U33 = 0; string u1, u2, u3; z = 0; u1 = U1TB.Text; u2 = U2TB.Text; u3 = U3TB.Text; if (u1.Length != 0 && F == 0) { z = 1; U11 = Int32.Parse(u1); U22 = (U11 - EU * IV / (IV + I2 + I1)) * (IV + I2 + I1) / I2; U33 = U22 * (I4 + I5) / (I4 + I5 + I6); U22 = Math.Round(U22, 3); U33 = Math.Round(U33, 3); U2TB.Text = U22.ToString(); U3TB.Text = U33.ToString(); F = Math.Round(Math.Pow(U11 - U1, 2), 3); FTB.Text = F.ToString(); } ; if (u2.Length != 0 && F == 0) { z = 2; U22 = Int32.Parse(u2); U11 = U22 * I2 / (IV + I2 + I1) + EU * IV / (IV + I2 + I1); U33 = U22 * (I4 + I5) / (I4 + I5 + I6); U1TB.Text = U11.ToString(); U3TB.Text = U33.ToString(); U11 = Math.Round(U11, 3); U33 = Math.Round(U33, 3); F = Math.Round(Math.Pow(U22 - U2, 2), 3); FTB.Text = F.ToString(); } ; if (u3.Length != 0 && F == 0) { z = 3; U33 = Int32.Parse(u3); U22 = U33 * (I4 + I5 + I6) / (I4 + I5); U11 = U22 * I2 / (IV + I2 + I1) + EU * IV / (IV + I2 + I1); U22 = Math.Round(U22, 3); U11 = Math.Round(U11, 3); U1TB.Text = U11.ToString(); U2TB.Text = U22.ToString(); F = Math.Round(Math.Pow(U33 - U3, 2), 3); FTB.Text = F.ToString(); } ; Fz = F; }
public override int GetHashCode() { int hash = 1; if (DeckPresetId != 0) { hash ^= DeckPresetId.GetHashCode(); } if (Character1Id != 0L) { hash ^= Character1Id.GetHashCode(); } if (Trainer1Id != 0L) { hash ^= Trainer1Id.GetHashCode(); } if (U4 != 0) { hash ^= U4.GetHashCode(); } if (U5 != 0) { hash ^= U5.GetHashCode(); } if (U6 != 0) { hash ^= U6.GetHashCode(); } if (U7 != 0) { hash ^= U7.GetHashCode(); } if (U8 != 0) { hash ^= U8.GetHashCode(); } if (U9 != 0) { hash ^= U9.GetHashCode(); } if (Character2Id != 0L) { hash ^= Character2Id.GetHashCode(); } if (Trainer2Id != 0L) { hash ^= Trainer2Id.GetHashCode(); } if (U14 != 0) { hash ^= U14.GetHashCode(); } if (U15 != 0) { hash ^= U15.GetHashCode(); } if (U16 != 0) { hash ^= U16.GetHashCode(); } if (U17 != 0) { hash ^= U17.GetHashCode(); } if (U18 != 0) { hash ^= U18.GetHashCode(); } if (U19 != 0) { hash ^= U19.GetHashCode(); } if (Character3Id != 0L) { hash ^= Character3Id.GetHashCode(); } if (Trainer3Id != 0L) { hash ^= Trainer3Id.GetHashCode(); } if (U24 != 0) { hash ^= U24.GetHashCode(); } if (U25 != 0) { hash ^= U25.GetHashCode(); } if (U26 != 0) { hash ^= U26.GetHashCode(); } if (U27 != 0) { hash ^= U27.GetHashCode(); } if (U28 != 0) { hash ^= U28.GetHashCode(); } if (U29 != 0) { hash ^= U29.GetHashCode(); } if (Item1Id != 0L) { hash ^= Item1Id.GetHashCode(); } if (U33 != 0) { hash ^= U33.GetHashCode(); } if (U34 != 0) { hash ^= U34.GetHashCode(); } if (Item2Id != 0L) { hash ^= Item2Id.GetHashCode(); } if (U36 != 0) { hash ^= U36.GetHashCode(); } if (U37 != 0) { hash ^= U37.GetHashCode(); } if (Item3Id != 0L) { hash ^= Item3Id.GetHashCode(); } if (U39 != 0) { hash ^= U39.GetHashCode(); } if (U40 != 0) { hash ^= U40.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }