Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestId != 0UL)
            {
                hash ^= QuestId.GetHashCode();
            }
            if (QuestTitle.Length != 0)
            {
                hash ^= QuestTitle.GetHashCode();
            }
            if (QuestId2 != 0UL)
            {
                hash ^= QuestId2.GetHashCode();
            }
            if (U4 != 0L)
            {
                hash ^= U4.GetHashCode();
            }
            if (U05 != 0UL)
            {
                hash ^= U05.GetHashCode();
            }
            if (U06 != 0UL)
            {
                hash ^= U06.GetHashCode();
            }
            if (QuestId3 != 0UL)
            {
                hash ^= QuestId3.GetHashCode();
            }
            if (U08 != 0UL)
            {
                hash ^= U08.GetHashCode();
            }
            if (U09 != 0UL)
            {
                hash ^= U09.GetHashCode();
            }
            if (U10.Length != 0)
            {
                hash ^= U10.GetHashCode();
            }
            if (U11 != 0UL)
            {
                hash ^= U11.GetHashCode();
            }
            if (U12 != 0UL)
            {
                hash ^= U12.GetHashCode();
            }
            if (U13 != 0UL)
            {
                hash ^= U13.GetHashCode();
            }
            if (U14.Length != 0)
            {
                hash ^= U14.GetHashCode();
            }
            if (U15 != 0UL)
            {
                hash ^= U15.GetHashCode();
            }
            if (U16 != 0UL)
            {
                hash ^= U16.GetHashCode();
            }
            if (U17 != 0UL)
            {
                hash ^= U17.GetHashCode();
            }
            if (U18 != 0UL)
            {
                hash ^= U18.GetHashCode();
            }
            if (U19 != 0UL)
            {
                hash ^= U19.GetHashCode();
            }
            if (U20 != 0UL)
            {
                hash ^= U20.GetHashCode();
            }
            if (U21 != 0UL)
            {
                hash ^= U21.GetHashCode();
            }
            if (U22 != 0UL)
            {
                hash ^= U22.GetHashCode();
            }
            if (QuestId4 != 0UL)
            {
                hash ^= QuestId4.GetHashCode();
            }
            if (U24 != 0UL)
            {
                hash ^= U24.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MonsterId != 0UL)
            {
                hash ^= MonsterId.GetHashCode();
            }
            if (Form != 0)
            {
                hash ^= Form.GetHashCode();
            }
            if (ActorId.Length != 0)
            {
                hash ^= ActorId.GetHashCode();
            }
            if (AtkScale != 0)
            {
                hash ^= AtkScale.GetHashCode();
            }
            if (DefScale != 0)
            {
                hash ^= DefScale.GetHashCode();
            }
            if (SpaScale != 0)
            {
                hash ^= SpaScale.GetHashCode();
            }
            if (SpdScale != 0)
            {
                hash ^= SpdScale.GetHashCode();
            }
            if (SpeScale != 0)
            {
                hash ^= SpeScale.GetHashCode();
            }
            if (Move1Id != 0L)
            {
                hash ^= Move1Id.GetHashCode();
            }
            if (Move2Id != 0L)
            {
                hash ^= Move2Id.GetHashCode();
            }
            if (Move3Id != 0L)
            {
                hash ^= Move3Id.GetHashCode();
            }
            if (Move4Id != 0L)
            {
                hash ^= Move4Id.GetHashCode();
            }
            if (Move5Id != 0L)
            {
                hash ^= Move5Id.GetHashCode();
            }
            if (Move6Id != 0L)
            {
                hash ^= Move6Id.GetHashCode();
            }
            if (Passive1Id != 0)
            {
                hash ^= Passive1Id.GetHashCode();
            }
            if (Passive2Id != 0)
            {
                hash ^= Passive2Id.GetHashCode();
            }
            if (Passive3Id != 0)
            {
                hash ^= Passive3Id.GetHashCode();
            }
            if (U18 != 0)
            {
                hash ^= U18.GetHashCode();
            }
            if (U19 != 0)
            {
                hash ^= U19.GetHashCode();
            }
            if (U20 != 0)
            {
                hash ^= U20.GetHashCode();
            }
            if (U21 != 0)
            {
                hash ^= U21.GetHashCode();
            }
            if (U22 != 0)
            {
                hash ^= U22.GetHashCode();
            }
            if (U23 != 0)
            {
                hash ^= U23.GetHashCode();
            }
            if (U24 != 0)
            {
                hash ^= U24.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }