Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (BranchInfo != null ? BranchInfo.GetHashCode() : 0);
         result = (result * 397) ^ (TargetLocation != null ? TargetLocation.GetHashCode() : 0);
         result = (result * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         result = (result * 397) ^ IsBranch.GetHashCode();
         result = (result * 397) ^ IsCheck.GetHashCode();
         result = (result * 397) ^ IsContinue.GetHashCode();
         result = (result * 397) ^ IsFailedCheck.GetHashCode();
         result = (result * 397) ^ IsStartMethod.GetHashCode();
         result = (result * 397) ^ IsSwitch.GetHashCode();
         result = (result * 397) ^ IsTarget.GetHashCode();
         return(result);
     }
 }
Ejemplo n.º 2
0
        private void Where_To_Check_Radio_Buttons()
        {
            string TempQuery = "SELECT VALUE FROM [Tbl.SystemSettings] WHERE [SETTINGS ID] = 'SEG100'";

            sqlcommand = new SqlCommand(TempQuery, sqlconnection);
            SqlDataReader sqldatareader = sqlcommand.ExecuteReader();

            while (sqldatareader.Read())
            {
                IsCheck = sqldatareader.GetString(0);
            }
            sqldatareader.Close();

            if (IsCheck.Equals("0"))
            {
                DisableAllRadioButton.Checked = true;
            }

            else if (IsCheck.Equals("1FG"))
            {
                FirstGradingRadioButton.Checked = true;
            }

            else if (IsCheck.Equals("2SG"))
            {
                SecondGradingRadioButton.Checked = true;
            }

            else if (IsCheck.Equals("3TG"))
            {
                ThirdGradingRadioButton.Checked = true;
            }

            else if (IsCheck.Equals("4FG"))
            {
                FourthGradingRadioButton.Checked = true;
            }
        }